Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

Yehia::Net::Socket Class Reference

Basic socket class. More...

#include <socket.h>

List of all members.

Public Member Functions

void close ()
void listen (int n=1)
Socket accept (Address &address) throw (Error)
bool is_open () const
int fd () const
Style style () const
 operator int () const


Detailed Description

Basic socket class.


Member Function Documentation

Socket Yehia::Net::Socket::accept Address address  )  throw (Error)
 

Accept a new connection.

void Yehia::Net::Socket::close  ) 
 

Close the socket.

int Yehia::Net::Socket::fd  )  const [inline]
 

Return file descriptor.

bool Yehia::Net::Socket::is_open  )  const [inline]
 

Check if open.

void Yehia::Net::Socket::listen int  n = 1  ) 
 

Listen to socket (make it a server socket).

Yehia::Net::Socket::operator int  )  const [inline]
 

Return file descriptor.

Style Yehia::Net::Socket::style  )  const
 

Get style of socket.


The documentation for this class was generated from the following file:
Generated on Thu May 1 21:13:04 2003 for Yehia by doxygen1.3