Definition at line 40 of file TcpSocket.h.
◆ TcpSocket() [1/3]
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.
◆ TcpSocket() [2/3]
TcpSocket::TcpSocket |
( |
int |
portVal | ) |
|
|
inline |
◆ TcpSocket() [3/3]
TcpSocket::TcpSocket |
( |
int |
socket, |
|
|
struct sockaddr * |
addr |
|
) |
| |
|
inline |
◆ ~TcpSocket()
virtual TcpSocket::~TcpSocket |
( |
| ) |
|
|
inlinevirtual |
◆ allowConnection()
bool TcpSocket::allowConnection |
( |
| ) |
|
|
virtual |
is there any wrapper code for unix sockets
Implements Socket.
Definition at line 563 of file TcpSocket.cc.
◆ close()
◆ connect()
void TcpSocket::connect |
( |
| ) |
|
|
virtual |
◆ dump()
void TcpSocket::dump |
( |
std::ostream & |
strm | ) |
const |
|
virtual |
dumps information about this object
Displays the pointer value of this instance
- Parameters
-
strm | C++ i/o stream to dump the information to |
Reimplemented from Socket.
Definition at line 588 of file TcpSocket.cc.
◆ getIp()
std::string Socket::getIp |
( |
| ) |
|
|
inlineinherited |
◆ getPort()
unsigned int Socket::getPort |
( |
| ) |
|
|
inlineinherited |
◆ getRecvBufferSize()
unsigned int TcpSocket::getRecvBufferSize |
( |
| ) |
|
|
virtual |
get the tcp receive buffer size using getsockopt
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 500 of file TcpSocket.cc.
◆ getSendBufferSize()
unsigned int TcpSocket::getSendBufferSize |
( |
| ) |
|
|
virtual |
get the tcp send buffer size using getsockopt
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 534 of file TcpSocket.cc.
◆ getSocketDescriptor()
virtual int Socket::getSocketDescriptor |
( |
| ) |
|
|
inlinevirtualinherited |
◆ isConnected()
virtual bool Socket::isConnected |
( |
| ) |
|
|
inlinevirtualinherited |
◆ isListening()
virtual bool Socket::isListening |
( |
| ) |
|
|
inlinevirtualinherited |
◆ listen()
void TcpSocket::listen |
( |
| ) |
|
|
virtual |
◆ newSocket()
virtual Socket * TcpSocket::newSocket |
( |
int |
socket, |
|
|
struct sockaddr * |
addr |
|
) |
| |
|
inlinevirtual |
◆ receive()
int Socket::receive |
( |
char * |
inBuff, |
|
|
const int |
inSize |
|
) |
| |
|
virtualinherited |
◆ send()
void Socket::send |
( |
const std::string & |
str, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| |
|
virtualinherited |
◆ _addr_set
◆ _connected
◆ _ip
◆ _listening
◆ _port
unsigned int Socket::_port |
|
protectedinherited |
◆ _socket
The documentation for this class was generated from the following files: