Receiving data from endpoints via a callback

An endpoint can deliver data as it is received to one or more functions or class methods within your application.

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:

  1. Create the function or class method that will receive the data from the endpoint.
  2. Create the sigc++ slot that will receive the data from the endpoint.
  3. Connect the slot to the endpoint using signal_data()

The following image illustrates the sequence of operations in receiving data via callbacks.

callback.png

Sequence of operations required to receive data via a callback mechanism.


Generated on Sat Aug 26 17:34:53 2006 by  doxygen 1.4.6