fix8  version 1.4.0
Open Source C++ FIX Framework
FIX8::bcoutbuf Class Reference

Socket output streambuf, inspiration from Josuttis N.M. More...

#include <logger.hpp>

Inheritance diagram for FIX8::bcoutbuf:

Public Member Functions

 bcoutbuf (Poco::Net::DatagramSocket *sock)
 
virtual ~bcoutbuf ()
 

Protected Member Functions

virtual int_type overflow (int_type c)
 
virtual std::streamsize xsputn (const char *s, std::streamsize num)
 

Protected Attributes

Poco::Net::DatagramSocket * _sock
 

Detailed Description

Socket output streambuf, inspiration from Josuttis N.M.

Definition at line 107 of file logger.hpp.

Constructor & Destructor Documentation

FIX8::bcoutbuf::bcoutbuf ( Poco::Net::DatagramSocket *  sock)
inline

Definition at line 129 of file logger.hpp.

129 : _sock(sock) {}
Poco::Net::DatagramSocket * _sock
Definition: logger.hpp:110
virtual FIX8::bcoutbuf::~bcoutbuf ( )
inlinevirtual

Definition at line 130 of file logger.hpp.

References _sock.

130 { _sock->close(); delete _sock; }
Poco::Net::DatagramSocket * _sock
Definition: logger.hpp:110

Member Function Documentation

virtual int_type FIX8::bcoutbuf::overflow ( int_type  c)
inlineprotectedvirtual

Definition at line 112 of file logger.hpp.

113  {
114  if (c != traits_type::eof())
115  {
116  char z(c);
117  _sock->sendBytes(&z, 1);
118  }
119  return c;
120  }
Poco::Net::DatagramSocket * _sock
Definition: logger.hpp:110
virtual std::streamsize FIX8::bcoutbuf::xsputn ( const char *  s,
std::streamsize  num 
)
inlineprotectedvirtual

Definition at line 122 of file logger.hpp.

123  {
124  _sock->sendBytes(s, num);
125  return num;
126  }
Poco::Net::DatagramSocket * _sock
Definition: logger.hpp:110

Member Data Documentation

Poco::Net::DatagramSocket* FIX8::bcoutbuf::_sock
protected

Definition at line 110 of file logger.hpp.

Referenced by ~bcoutbuf().


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