Function table_remove_subscription(struct netio_unbuffered_publish_socket *, struct netio_send_socket *, netio_tag_t, uint8_t)

Function Documentation

static void table_remove_subscription(struct netio_unbuffered_publish_socket *pubsocket, struct netio_send_socket *socket, netio_tag_t tag, uint8_t closed_connection)

Handle an unsubscription or a client disconnection.

Parameters:
  • pubsocket – netio_unbuffered_publish_socket to which all send sockets are associated.

  • socket – the netio_send_socket not needed anymore

  • tag – the tag for which an unsubscribe request has been received

  • closed_connection – a flag to enable the removal of all the subscriptions associated to the send socket in response to a closed connection.