#include <Comm.h>
Inheritance diagram for UDPReceiver:
Public Member Functions | |
UDPReceiver (in_port_t port, const char *hostname=NULL, bool reuse=true) | |
virtual size_t | receive (char *, size_t) throw (CommException) |
virtual void | shutdown () |
virtual string | uri () |
virtual string & | uri (string &) |
this receiver uses a UDP port to receive packets. It creates a local UDP port, accepting packets from it.
UDPReceiver::UDPReceiver | ( | in_port_t | port, | |
const char * | hostname = NULL , |
|||
bool | reuse = true | |||
) |
constructs a UDPReceiver
port | port number | |
hostname | externally visible name for this host. Although it is possible for this library to figure out a hostname, the default value is not 100% reliable, especially in cases in which the host uses dynamically-assigned IP addresses, or in the presence of several network interfaces. | |
reuse | determines whether the given port number should be immediately re-used, if recently bound to another application. |
virtual size_t UDPReceiver::receive | ( | char * | , | |
size_t | ||||
) | throw (CommException) [virtual] |
virtual void UDPReceiver::shutdown | ( | ) | [virtual] |
closes this sender
Reimplemented from Receiver.
virtual string UDPReceiver::uri | ( | ) | [virtual] |
URI for this receiver
a URI is an external representation of the point of contact of this receiver. This URI can be used to create senders to contact this receiver.
Implements Receiver.
virtual string& UDPReceiver::uri | ( | string & | ) | [virtual] |
exernally visible URI for this receiver
a URI is an external representation of the point of contact of this receiver. This URI can be used to create senders to contact this receiver.
Implements Receiver.