Class ILLIXR::network::TCPSocket
ClassList > ILLIXR > network > TCPSocket
#include <tcpsocket.hpp>
Public Functions
| Type | Name |
|---|---|
| TCPSocket () |
|
| TCPSocket (int fd) |
|
| void | enable_no_delay () const |
| bool | is_no_delay () const |
| std::string | local_address () const |
| std::string | peer_address () const |
| std::string | read_data (const size_t limit=BUFFER_SIZE) |
| int | socket_accept () const |
| void | socket_bind (const std::string & ip, int port) const |
| void | socket_connect (const std::string & ip, int port) const |
| void | socket_listen (const int backlog=16) const |
| void | socket_set_linger_zero () const |
| void | socket_set_reuseaddr () const |
| void | socket_shutdown () noexcept const |
| void | write_data (const std::string & buffer) |
| ~TCPSocket () |
Public Functions Documentation
function TCPSocket [1/2]
inline ILLIXR::network::TCPSocket::TCPSocket ()
function TCPSocket [2/2]
inline explicit ILLIXR::network::TCPSocket::TCPSocket (
int fd
)
function enable_no_delay
inline void ILLIXR::network::TCPSocket::enable_no_delay () const
function is_no_delay
inline bool ILLIXR::network::TCPSocket::is_no_delay () const
function local_address
inline std::string ILLIXR::network::TCPSocket::local_address () const
function peer_address
inline std::string ILLIXR::network::TCPSocket::peer_address () const
function read_data
inline std::string ILLIXR::network::TCPSocket::read_data (
const size_t limit=BUFFER_SIZE
)
function socket_accept
inline int ILLIXR::network::TCPSocket::socket_accept () const
function socket_bind
inline void ILLIXR::network::TCPSocket::socket_bind (
const std::string & ip,
int port
) const
function socket_connect
inline void ILLIXR::network::TCPSocket::socket_connect (
const std::string & ip,
int port
) const
function socket_listen
inline void ILLIXR::network::TCPSocket::socket_listen (
const int backlog=16
) const
function socket_set_linger_zero
inline void ILLIXR::network::TCPSocket::socket_set_linger_zero () const
function socket_set_reuseaddr
inline void ILLIXR::network::TCPSocket::socket_set_reuseaddr () const
function socket_shutdown
inline void ILLIXR::network::TCPSocket::socket_shutdown () noexcept const
Interrupt a blocking read without destroying the socket object out from under the reader thread.
function write_data
inline void ILLIXR::network::TCPSocket::write_data (
const std::string & buffer
)
function ~TCPSocket
inline ILLIXR::network::TCPSocket::~TCPSocket ()
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/illixr_release/ILLIXR/include/illixr/network/tcpsocket.hpp