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

Socket Class Reference

#include <Socket.hpp>

List of all members.

Public Methods

 Socket ()
 Socket (unsigned short port)
 ~Socket ()
void listen (unsigned short port)
bool isPendingConnection (long timeout)

Friends

class TCPStream


Detailed Description

A listening socket.


Constructor & Destructor Documentation

Socket::Socket  
 

Default constructor. Don't open any connection.

Socket::Socket unsigned short    port
 

Constructor. Open a listening socket on the specified port.

Socket::~Socket  
 

Destructor. Close the socket.


Member Function Documentation

bool Socket::isPendingConnection long    timeout
 

Check if a new connection is waiting.

Returns:
true if there is a new connection pooled.
Parameters:
timeout  Milliseconds to wait. -1 for an infinite timeout.

void Socket::listen unsigned short    port
 

Open a listening socket on the specified port.


Friends And Related Function Documentation

friend class TCPStream [friend]
 

Allow the class TCPStream access to private vars


The documentation for this class was generated from the following files:
Generated on Sun Jan 20 21:00:00 2002 for bkmd by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001