Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCUDPSocket Class Reference

Connection-less UDP Socket. More...

#include <mcllib/MCSocket.h>

Inheritance diagram for MCUDPSocket:

MCCLSocket MCSocket MCIOBase MCBase List of all members.

Public Member Functions

 MCUDPSocket (const MCNetAddr &addr)
 Construct a UDP socket bound to a local address.
 MCUDPSocket ()
 Construct an unbound UDP socket.

Detailed Description

Connection-less UDP Socket.

A connection-less UDP socket is not connected to a specific remote peer. Instead each time data is sent, the peer must be identified. This is achieved using the sendTo() method.

Constructor & Destructor Documentation

MCUDPSocket  ) 

Construct an unbound UDP socket.

The resultant socket should be bound to a local address with the bind() method.

MCUDPSocket const MCNetAddr addr  ) 

Construct a UDP socket bound to a local address.

If the socket cannot be bound to the address an exception is thrown.

addr the local address to bind the socket to

Generated on Wed Jan 12 19:05:50 2005 for MCLLIB by  doxygen