Conceptually, this is the delivery mechanism that is probably most appropriate for datagram delivery such as UDP/IP.
To receive data from an endpoint via callback you need to:
void
function_or_method_name
(Conexus::Data)void
and the first parameter must be const
Conexus::Data&
sigc::bind
, which is discussed in the Gtkmm tutorial and the sigc++ documentation.sigc::mem_fun
and sigc::ptr_fun
will sufficesigc::slot<void
, Conexus::Data>
signal_data()
The following image illustrates the sequence of operations in receiving data via callbacks.
Sequence of operations required to receive data via a callback mechanism.