Library of Assembled Shared Sources
lass::io::BinaryOSocket Class Reference

BinaryOStream to socket. More...

#include <binary_o_socket.h>

Inheritance diagram for lass::io::BinaryOSocket:
Collaboration diagram for lass::io::BinaryOSocket:

Public Member Functions

 BinaryOSocket (Socket *socket, size_t bufferSize=0, unsigned long flushPeriod=100)
 
void setSocket (Socket *socket)
 
size_t write (const void *buffer, size_t byteLength)
 write a buffer of bytes to the stream
 

Detailed Description

BinaryOStream to socket.

Definition at line 61 of file binary_o_socket.h.

Constructor & Destructor Documentation

◆ BinaryOSocket()

lass::io::BinaryOSocket::BinaryOSocket ( Socket * socket,
size_t bufferSize = 0,
unsigned long flushPeriod = 100 )
Parameters
socket[in] BinaryISocket does not take ownership of socket, and it must be alive as long as BinaryISocket needs it (until BinaryISocket goes out of scope, or another socket is installed).

Definition at line 76 of file binary_o_socket.cpp.

Member Function Documentation

◆ setSocket()

void lass::io::BinaryOSocket::setSocket ( Socket * socket)
Parameters
socket[in] BinaryISocket does not take ownership of socket, and it must be alive as long as BinaryISocket needs it (until BinaryISocket goes out of scope, or another socket is installed).

Definition at line 126 of file binary_o_socket.cpp.

References LASS_LOCK.

◆ write()

size_t lass::io::BinaryOStream::write ( const void * bytes,
size_t numBytes )
inherited

write a buffer of bytes to the stream

Parameters
bytespointer to buffer.
numByteslength of buffer in bytes.

Definition at line 239 of file binary_o_stream.cpp.

References write().

Referenced by write().


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