Function netio_unbuffered_subscribe_socket_init

Function Documentation

void netio_unbuffered_subscribe_socket_init(struct netio_unbuffered_subscribe_socket *socket, struct netio_context *ctx, const char *hostname, const char *remote_host, unsigned remote_port, size_t buffer_size, size_t count)

Initialize an unbuffered subscribe socket

Parameters:
  • socket – An unbuffered subscribe socket

  • ctx – A netio context

  • hostname – A local hostname or IP to bind to

  • remote_host – Hostname or IP of the remote publish socket

  • remote_port – Port of the remote publish socket

  • buffers – Array of registered receive buffers

  • count – Size of the buffer array