#include <Socket.h>
Inherits Object.
Inherited by Connection, and TcpServer.
Inheritance diagram for Socket:


Public Member Functions | |
| Socket (const int sock=-1) | |
| virtual | ~Socket () |
| int | socket () const |
Protected Attributes | |
| int | _socket |
Friends | |
| class | Poller |
Definition at line 14 of file Socket.h.
| Socket::Socket | ( | const int | sock = -1 |
) |
| Socket::~Socket | ( | ) | [virtual] |
Definition at line 16 of file Socket.cpp.
| 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().
friend class Poller [friend] |
Reimplemented in Connection, TcpConnection, TcpServer, UdpConnection, and UdpServer.
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().
1.5.1