Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

UDPSocket Class Reference

UDP socket class. More...

#include <PracticalSocket.h>

Inheritance diagram for UDPSocket:

Inheritance graph
[legend]
Collaboration diagram for UDPSocket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UDPSocket () throw (SocketException)
 Construct a UDP socket
Exceptions:
SocketException thrown if unable to create UDP socket.

 UDPSocket (unsigned short localPort) throw (SocketException)
 Construct a UDP socket with the given local port.
 UDPSocket (const string &localAddress, unsigned short localPort) throw (SocketException)
 Construct a UDP socket with the given local port and address.
void disconnect () throw (SocketException)
 Unset foreign address and port.
void sendTo (const void *buffer, int bufferLen, const string &foreignAddress, unsigned short foreignPort) throw (SocketException)
 Send the given buffer as a UDP datagram to the specified address/port.
int recvFrom (void *buffer, int bufferLen, string &sourceAddress, unsigned short &sourcePort) throw (SocketException)
 Read read up to bufferLen bytes data from this socket.
void setMulticastTTL (unsigned char multicastTTL) throw (SocketException)
 Set the multicast TTL.
void joinGroup (const string &multicastGroup) throw (SocketException)
 Join the specified multicast group.
void leaveGroup (const string &multicastGroup) throw (SocketException)
 Leave the specified multicast group.

Private Member Functions

void setBroadcast ()

Detailed Description

UDP socket class.

Definition at line 257 of file PracticalSocket.h.


The documentation for this class was generated from the following files:
Generated on Fri Mar 19 10:32:57 2010 for ImpalaSrc by  doxygen 1.5.1