AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::network::TcpStream Class Reference

#include <tcpStream.hpp>

+ Inheritance diagram for anch::network::TcpStream:
+ Collaboration diagram for anch::network::TcpStream:

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)
 

Detailed Description

TCP stream

Author
Vincent Lachenal
Since
0.1

Constructor & Destructor Documentation

◆ TcpStream()

anch::network::TcpStream::TcpStream ( const std::string & ipAddress,
uint16_t port,
std::size_t bufSize = 1500 )

TcpStream constructor

Parameters
ipAddressthe IP address
portthe port number
bufSizethe buffer size in byte (default = 1500)
Exceptions
anch::network::IOExceptionError while creating the socket

◆ ~TcpStream()

virtual anch::network::TcpStream::~TcpStream ( )
virtualnoexcept

TcpStream destructor

Member Data Documentation

◆ _buffer

anch::cutils::cbuffer anch::network::TcpStream::_buffer
protected

I/O buffer

◆ _socket

anch::network::TcpSocket anch::network::TcpStream::_socket
protected

The TCP socket


The documentation for this class was generated from the following file: