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

MCCOUDPSocket Class Reference

Connection-oriented UDP Socket. More...

#include <mcllib/MCSocket.h>

Inheritance diagram for MCCOUDPSocket:

MCCOSocket MCSocket MCIOBase MCBase List of all members.

Public Member Functions

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

Detailed Description

Connection-oriented UDP Socket.

A connection-oriented UDP socket differs from a connection-less UDP socket in that the connect() method must be used to connect it to a remote address and send() used on the connected socket.


Constructor & Destructor Documentation

MCCOUDPSocket  ) 
 

Construct an unbound UDP socket.

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

MCCOUDPSocket 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.

Parameters:
addr the local address to bind the socket to


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