#include <tcpStream.hpp>
Public Member Functions | |
TcpStream (const std::string &ipAddress, uint16_t port, std::size_t bufSize=1500) | |
virtual | ~TcpStream () noexcept |
bool | addObserver (anch::events::Observer< anch::network::SocketEvent > &observer) |
Public Member Functions inherited from anch::cutils::CIOStream | |
CIOStream (anch::cutils::cbuffer cbuffer) | |
virtual | ~CIOStream () |
Protected Attributes | |
anch::network::TcpSocket | _socket |
anch::cutils::cbuffer | _buffer |
Additional Inherited Members | |
Protected Member Functions inherited from anch::cutils::CIOStream | |
CIOStream () | |
void | setBuffer (anch::cutils::cbuffer cbuffer) |
TCP stream
anch::network::TcpStream::TcpStream | ( | const std::string & | ipAddress, |
uint16_t | port, | ||
std::size_t | bufSize = 1500 ) |
TcpStream constructor
ipAddress | the IP address |
port | the port number |
bufSize | the buffer size in byte (default = 1500) |
anch::network::IOException | Error while creating the socket |
|
virtualnoexcept |
TcpStream destructor
|
protected |
I/O buffer
|
protected |
The TCP socket