|
virtual bool | allowConnection () |
| is there any wrapper code for unix sockets More...
|
|
virtual void | close () |
|
virtual void | connect () |
|
virtual void | dump (std::ostream &strm) const |
| dumps information about this object More...
|
|
std::string | getIp () |
|
unsigned int | getPort () |
|
virtual unsigned int | getRecvBufferSize () |
| get the tcp receive buffer size using getsockopt More...
|
|
virtual unsigned int | getSendBufferSize () |
| get the tcp send buffer size using getsockopt More...
|
|
virtual int | getSocketDescriptor () |
|
virtual bool | isConnected () |
|
virtual bool | isListening () |
|
virtual void | listen () |
|
virtual Socket * | newSocket (int socket, struct sockaddr *addr) |
|
virtual int | receive (char *inBuff, const int inSize) |
|
virtual void | send (const std::string &str, int start, int end) |
|
| TcpSocket (const std::string &host, int portVal) |
|
| TcpSocket (int portVal) |
|
| TcpSocket (int socket, struct sockaddr *addr) |
|
|
bool | _addr_set |
|
bool | _connected |
|
std::string | _ip |
|
bool | _listening |
|
unsigned int | _port |
|
int | _socket |
|
Definition at line 40 of file TcpSocket.h.
◆ TcpSocket()
TcpSocket::TcpSocket |
( |
const std::string & |
host, |
|
|
int |
portVal |
|
) |
| |
|
inline |
Build a TcPSocket object.
- Parameters
-
host | A DNS name or an IPV4 number |
portVal | The port to listen on |
Definition at line 57 of file TcpSocket.h.
◆ allowConnection()
bool TcpSocket::allowConnection |
( |
| ) |
|
|
virtual |
◆ dump()
void TcpSocket::dump |
( |
std::ostream & |
strm | ) |
const |
|
virtual |
Displays the pointer value of this instance
- Parameters
-
strm | C++ i/o stream to dump the information to |
Reimplemented from Socket.
Definition at line 593 of file TcpSocket.cc.
References Socket::dump().
◆ getRecvBufferSize()
unsigned int TcpSocket::getRecvBufferSize |
( |
| ) |
|
|
virtual |
Get the receive buffer size for this socket descriptor using the getsockopt system function. We do this to maximize the performance of TCP sockets
- Exceptions
-
Implements Socket.
Definition at line 505 of file TcpSocket.cc.
◆ getSendBufferSize()
unsigned int TcpSocket::getSendBufferSize |
( |
| ) |
|
|
virtual |
Get the send buffer size for this socket descriptor using the getsockopt system function. We do this to maximize the performance of TCP sockets
- Exceptions
-
Implements Socket.
Definition at line 539 of file TcpSocket.cc.
The documentation for this class was generated from the following files: