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)


class TCPStream

Detailed Description

A listening socket.

Constructor & Destructor Documentation


Default constructor. Don't open any connection.

Socket::Socket unsigned short    port

Constructor. Open a listening socket on the specified port.


Destructor. Close the socket.

Member Function Documentation

bool Socket::isPendingConnection long    timeout

Check if a new connection is waiting.

true if there is a new connection pooled.
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