libcsdbg  1.28
C++ exception (and generic) stack trace debug library
tcpsockbuf & csdbg::tcpsockbuf::flush ( )
virtual

Flush the buffered data to the socket.

Returns
*this
Exceptions
csdbg::exception

Implements csdbg::streambuf.

Definition at line 220 of file tcpsockbuf.cpp.

References csdbg::streambuf::flush(), m_address, m_port, and sync().

Referenced by set_option().

221 {
222  try {
224  return sync();
225  }
226 
227  catch (i32 err) {
228  throw exception(
229  "failed to send data @ %s:%d (errno %d - %s)",
230  m_address,
231  m_port,
232  err,
233  strerror(err)
234  );
235  }
236 }
virtual streambuf & flush()=0
To be implemented.
Definition: streambuf.cpp:156
i8 * m_address
Peer IP address (numerical, IPv4)
Definition: tcpsockbuf.hpp:40
i32 m_port
Peer TCP port.
Definition: tcpsockbuf.hpp:42
virtual tcpsockbuf & sync() const
Commit cached data to the network.
Definition: tcpsockbuf.cpp:244
int i32
32-bit signed integer
Definition: config.hpp:82

+ Here is the call graph for this function:

+ Here is the caller graph for this function: