Function netio_subscribe_socket_init

Function Documentation

void netio_subscribe_socket_init(struct netio_subscribe_socket *socket, struct netio_context *ctx, struct netio_buffered_socket_attr *attr, const char *hostname, const char *remote_host, unsigned remote_port)

Initializes a buffered subscribe socket.

See also

netio_buffered_send_socket_init for a description of the connection parameters

Parameters:
  • socket – The buffered subscribe socket to initialize

  • ctx – The NetIO context in which to initialize the socket

  • attr – Buffered connection settings to be used for the underlying connections

  • hostname – Hostname or IP address of the local interface to bind to

  • remote_host – Hostname or IP of the remote publish socket

  • remote_port – Port of the remote publish socket