karoo::rock_datagram_factory Class Reference

This class is used for creating datagram_message objects. More...

#include <rock.h>

Inheritance diagram for karoo::rock_datagram_factory:

karoo::datagram_message_factory

List of all members.

Public Member Functions

 rock_datagram_factory (rock *parent)
datagram_messagecreate_datagram_message (size_t alloc_size)
 this method is called by the datagram_server to create itself a new datagram_message, in this case, a rock_datagram_message.

Protected Attributes

rockparent


Detailed Description

This class is used for creating datagram_message objects.

The datagram_server requires a factory for creating message objects specific for whatever system is using it, in this case a rock object. The datagram_server calls the factory to create an empty datagram_message object which gets the incoming data from a datagram received by the server. This datagram_message (which also inherits from pebble), is then added to the queue (also specified to the datagram_server along with the factory, by the rock). The queue will almost immediately run it, thus calling the rock_datagram_message::run() method which handles it appropriately for a rock.


The documentation for this class was generated from the following file:

Generated on Tue Feb 16 15:04:30 2010 for Karoo by  doxygen 1.5.8