Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | Class 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

Classes

class  Error
 Thrown on socket errors. More...


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 Mon Apr 4 22:41:29 2005 for Yehia by  doxygen 1.4.0