1 #ifndef _CSDBG_TCPSOCKBUF
2 #define _CSDBG_TCPSOCKBUF 1
This abstract class is the base for all buffered output stream types (for files, sockets, serial interfaces e.t.c)
char i8
8-bit signed integer
i8 * m_address
Peer IP address (numerical, IPv4)
Class csdbg::streambuf definition.
tcpsockbuf(const i8 *, i32=g_ldp_port)
Object constructor.
virtual ~tcpsockbuf()
Object destructor.
virtual const i8 * address() const
Get the peer IP address.
virtual tcpsockbuf & sync() const
Commit cached data to the network.
virtual tcpsockbuf & open()
Connect the socket to its peer.
A buffered TCP/IP socket output stream.
virtual tcpsockbuf & shutdown(i32) const
Shutdown one or both socket channels.
virtual bool is_connected() const
Check if the socket is connected to its peer.
virtual tcpsockbuf & operator=(const tcpsockbuf &)
Assignment operator.
virtual tcpsockbuf & set_option(i32, const void *, u32)
Set a socket option (applies only for the SOL_SOCKET ioctl level)
unsigned int u32
32-bit unsigned integer
int i32
32-bit signed integer
static const i32 g_ldp_port
LDP service port.
virtual i32 port() const
Get the peer TCP port.
virtual tcpsockbuf & flush()
Flush the buffered data to the socket.
virtual tcpsockbuf * clone() const
Object virtual copy constructor.