Socket Class Reference

#include <Socket.h>

Inherits Object.

Inherited by Connection, and TcpServer.

Inheritance diagram for Socket:

Inheritance graph
Collaboration diagram for Socket:

Collaboration graph
List of all members.

Public Member Functions

 Socket (const int sock=-1)
virtual ~Socket ()
int socket () const

Protected Attributes

int _socket


class Poller

Detailed Description

Definition at line 14 of file Socket.h.

Constructor & Destructor Documentation

Socket::Socket ( const int  sock = -1  ) 

Definition at line 11 of file Socket.cpp.

References _socket.

Socket::~Socket (  )  [virtual]

Definition at line 16 of file Socket.cpp.

Member Function Documentation

int Socket::socket (  )  const

Definition at line 20 of file Socket.cpp.

References _socket.

Referenced by Poller::add(), Connection::localIp(), Poller::remove(), TcpConnection::TcpConnection(), TcpServer::TcpServer(), and UdpConnection::UdpConnection().

Friends And Related Function Documentation

friend class Poller [friend]

Reimplemented in Connection, TcpConnection, TcpServer, UdpConnection, and UdpServer.

Definition at line 17 of file Socket.h.

Member Data Documentation

int Socket::_socket [protected]

Definition at line 30 of file Socket.h.

Referenced by TcpServer::accept(), Connection::available(), Connection::clear(), Connection::close(), TcpConnection::connect(), Connection::isAlive(), Poller::poll(), Connection::read(), Connection::readAvailable(), Connection::readLn(), UdpConnection::setBroadcast(), Connection::setDead(), TcpConnection::setNonBlock(), Connection::setup(), Connection::shutdown(), socket(), Socket(), TcpServer::TcpServer(), UdpServer::UdpServer(), Connection::write(), Connection::~Connection(), and TcpServer::~TcpServer().

The documentation for this class was generated from the following files:
Generated on Thu Sep 6 20:13:54 2007 for Pylon Application Platform by  doxygen 1.5.1