#include <Socket.h>
Inheritance diagram for Socket:
Public Member Functions | |
Socket () | |
Socket (int socket, struct sockaddr *addr) | |
virtual | ~Socket () |
virtual void | connect ()=0 |
virtual bool | isConnected () |
virtual void | listen ()=0 |
virtual bool | isListening () |
virtual void | close () |
virtual void | send (const string &str, int start, int end) |
virtual int | receive (char *inBuff, int inSize) |
virtual int | getSocketDescriptor () |
unsigned int | getPort () |
string | getIp () |
virtual Socket * | newSocket (int socket, struct sockaddr *addr)=0 |
virtual void | dump (ostream &strm) const |
dumps information about this object | |
Protected Attributes | |
int | _socket |
bool | _connected |
bool | _listening |
string | _ip |
unsigned int | _port |
bool | _addr_set |
Socket::Socket | ( | ) | [inline] |
Socket::Socket | ( | int | socket, | |
struct sockaddr * | addr | |||
) |
virtual Socket::~Socket | ( | ) | [inline, virtual] |
Here is the call graph for this function:
void Socket::close | ( | ) | [virtual] |
Reimplemented in UnixSocket.
virtual void Socket::connect | ( | ) | [pure virtual] |
Implemented in TcpSocket, and UnixSocket.
void Socket::dump | ( | ostream & | strm | ) | const [virtual] |
dumps information about this object
Displays the pointer value of this instance
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Reimplemented in TcpSocket, and UnixSocket.
string Socket::getIp | ( | ) | [inline] |
unsigned int Socket::getPort | ( | ) | [inline] |
virtual int Socket::getSocketDescriptor | ( | ) | [inline, virtual] |
virtual bool Socket::isConnected | ( | ) | [inline, virtual] |
virtual bool Socket::isListening | ( | ) | [inline, virtual] |
virtual void Socket::listen | ( | ) | [pure virtual] |
Implemented in TcpSocket, and UnixSocket.
virtual Socket* Socket::newSocket | ( | int | socket, | |
struct sockaddr * | addr | |||
) | [pure virtual] |
Implemented in TcpSocket, and UnixSocket.
int Socket::receive | ( | char * | inBuff, | |
int | inSize | |||
) | [virtual] |
void Socket::send | ( | const string & | str, | |
int | start, | |||
int | end | |||
) | [virtual] |
bool Socket::_addr_set [protected] |
bool Socket::_connected [protected] |
string Socket::_ip [protected] |
bool Socket::_listening [protected] |
unsigned int Socket::_port [protected] |
int Socket::_socket [protected] |