extern struct BP_CONNECTION* bp_connection_create

(int socket,
  char* mode,
  IO_STATE* ios,
  void (*log)(int,
  int,
  char* ,
  ...),
  READER_WRITER* reader_writer,
  struct configobj* appconfig)

Binds a socket to a connection structure.

Documentation

Binds a socket to a connection structure.

Parameters:
socket - The socket-descriptor.
mode - A pointer to the initial connection mode, either "plaintext" or "encrypted"
ios - TBD.
log - A pointer to the logging function, which is usually log_line.
reader_writer - TBD, typically NULL.
appconfig - A pointer to the configuration structure that may be used for configuration purposes.
Returns:
A pointer to a connection structure that represents the binding.
See Also:
tcp_bp_connect
tcp_bp_listen

Home Alphabetic index



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