InetUDPReplier Class Reference

this class sends from a particular UDP port using an InetUDPReplier. More...

#include <InetUDPReplier.h>

Inheritance diagram for InetUDPReplier:

[legend]
Collaboration diagram for InetUDPReplier:
[legend]
List of all members.

Public Member Functions

 InetUDPReplier (InetUDPMaster *master)
 constructor
 InetUDPReplier (InetUDPReplier &)
 copy constructor
virtual ~InetUDPReplier ()
 destructor
bool transmit (const std::string &data)
 transmit outgoing data
bool setDestination (const std::string &host, const short port)
 set address and port of the destination host
bool setReturnPort (short)
 set return port same as setDestination above, but specialized a bit.
const std::string getStatusString (void)
 get human readable string describing the status of this object
std::string getName ()
 Uniquely identifies the other end of this connection (i.e.
virtual Transmitclone ()
 Copies self.

Detailed Description

this class sends from a particular UDP port using an InetUDPReplier.

Author:
Jared Jennings


Constructor & Destructor Documentation

InetUDPReplier::InetUDPReplier InetUDPMaster master  ) 
 

constructor

Parameters:
master a pointer to the InetUDPMaster to use to transmit this InetUDPMaster is expected to be the same one that is used to listen on; a pointer to it will probably not dangle, because that object will not go away as long as we're listening to the network.


Member Function Documentation

std::string InetUDPReplier::getName  )  [virtual]
 

Uniquely identifies the other end of this connection (i.e.

address and port). Does not uniquely identify this object (i.e. should not contain any representation of this), because we clone InetUDPRepliers sometimes, and we want to know if they're connected to the same other end.

Reimplemented from Transmit.

const std::string InetUDPReplier::getStatusString void   ) 
 

get human readable string describing the status of this object

Returns:
status string of this object

bool InetUDPReplier::setDestination const std::string &  host,
const short  port
 

set address and port of the destination host

this method sets the destination address of data being sent with send()

Parameters:
host the hostname or address to send to
port the port number to send to
Returns:
true on success, false on failure

bool InetUDPReplier::transmit const std::string &  data  )  [virtual]
 

transmit outgoing data

Parameters:
data the data buffer to be transmit
Returns:
true on success, false on error

Implements Transmit.


The documentation for this class was generated from the following files:
Generated on Thu Mar 2 23:51:35 2006 for libOSC++ by  doxygen 1.4.6