Library of Assembled Shared Sources
|
BinaryOStream to socket. More...
#include <binary_o_socket.h>
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 | |
BinaryOStream to socket.
Definition at line 61 of file binary_o_socket.h.
lass::io::BinaryOSocket::BinaryOSocket | ( | Socket * | socket, |
size_t | bufferSize = 0, | ||
unsigned long | flushPeriod = 100 ) |
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.
void lass::io::BinaryOSocket::setSocket | ( | Socket * | socket | ) |
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.
|
inherited |
write a buffer of bytes to the stream
bytes | pointer to buffer. |
numBytes | length of buffer in bytes. |
Definition at line 239 of file binary_o_stream.cpp.
References write().
Referenced by write().