Function table_remove_subscription(struct netio_subscription_table *, struct netio_buffered_send_socket *, netio_tag_t, uint8_t)

Function Documentation

static void table_remove_subscription(struct netio_subscription_table *table, struct netio_buffered_send_socket *socket, netio_tag_t tag, uint8_t closed_connection)

Handle an unsubscription or a client disconnection.

Parameters:
  • netio_subscription_table – the table of active subscriptions

  • socket – the unbuffered send socket used to send the data to the subscriber

  • 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.