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

net::Socket Class Reference

Low level network socket communication class. More...

#include <Socket.h>

List of all members.

Public Member Functions

 Socket ()
 Constructor for a Socket.
 Socket (Socket *)
 ~Socket ()
 Destructor for Socket.
MessageRecv ()
 get a Message through the socket
int Send (Message *)
int Connect (string addr, int port)
int Bind (string, int)
int Listen ()
 Listen to the socket.
SocketAccept ()
 Blocks the current process until a TCP connection request is received on the bound port.
void setLocalAddr (string)
void setRemoteAddr (string)
string getLocalAddr ()
 Get the local address in dotted notation.
string getRemoteAddr ()
 Get the remote address in dotted notation.


Detailed Description

Low level network socket communication class.

Author:
Laurent Moutel


Member Function Documentation

net::Socket::Accept  ) 
 

Blocks the current process until a TCP connection request is received on the bound port.

Returns:
The new socket for the new connection

net::Socket::getLocalAddr  ) 
 

Get the local address in dotted notation.

Returns:
The local IP address in dotted notation

net::Socket::getRemoteAddr  ) 
 

Get the remote address in dotted notation.

Returns:
The remote IP address in dotted notation

net::Socket::Listen  ) 
 

Listen to the socket.

Returns:
-1 on error, else 0

net::Socket::Recv  ) 
 

get a Message through the socket

Returns:
A pointer to the Message received


The documentation for this class was generated from the following file:
Generated on Fri May 19 23:12:37 2006 for common by  doxygen 1.4.4