extern DIAGNOSTIC* tcp_bp_connect

(char* peer, int port,
  PROFILE_REGISTRATION* pr,
  struct configobj* appconfig,
  BP_CONNECTION** connection)

Connect to a host, bind the socket-descriptor to a connection structure, register profile-modules, and start the initiator.

Documentation

Connect to a host, bind the socket-descriptor to a connection structure, register profile-modules, and start the initiator.

Parameters:
host - A pointer to the hostname or dotted-quad.
port - A TCP port number.
log - A pointer to the logging function, which is usually log_line.
pr - A pointer to the profile-registration structure.
appconfig - A pointer to the configuration structure that may be used for configuration purposes.
connection - A pointer to return a new pointer to a connection structure.
Returns:
A diagnostic structure if an error occured while connecting, otherwise NULL.
See Also:
bp_connection_create
bp_profile_register
bp_start

Home Alphabetic index



This page was generated with the help of DOC++.