dmuNetwork
Inherits from: dmuObj
#include "dmuNetwork.h"
Overview
This object will allow you go use the network with libdmu. This is
almost entirely a virtual object. You will never be able to use
this object directly. You must use a subclass of this object.
See the source code for more info and implementation details.
Public Methods
- dmuNetwork()
Constructor: This constructor sets up some default values. and
creates a new semaphore
- ~dmuNetwork()
Destructor: This destructor does nothing beyond freeing up the
semaphore we have been using.
- void setHostname(char *_hostname)
Tell the object the name of the remote machine
- void setPort(int _port)
Tell the object the port being used on the remote machine
- virtual int setup()
This method doesn't do anything. It's a place holder in case it
is necessary later.
- virtual int init(dmuParams *params = NULL)
Subclasses of this object will override this method.
- virtual int start( int propagate = DMU_PROPAGATE)
This will start the object running, most subclasses will override
this method.
- virtual int stop()
Use this method to stop the object from sending things down the chain
- virtual int getFD()
returns an fd that you can use in the main event loop
- virtual int receive(DMbuffer inBuffer)
Virtual method that subclasses need to override
- virtual int handleEvents(fd_set fdSet)
Virtual method that subclasses need to override
- int setPentData(pentData *dataObj)
This method is used to give the object a network data object
to use to access the network.
- int addSrcConstraints(DMparams *params)
add the constraints this object has on it's source
- int addDstConstraints(DMparams *params)
add the constraints this object has on it's destination
- int setPrintReturnErr(int _printReturnErr)
debugging
print out when you try to return an error with the DMUIC_ERR macro
Overview Object List Object Hierarchy
Sample Apps