A socket to send or receive a stream of data
![]() | isEof () Checks if socket is closed |
![]() | operator= (oslSocket Socket) Attaches the oslSocket to this object |
![]() | OStreamSocket (oslSocket Socket) Creates socket as wrapper around the underlying oslSocket |
![]() | OStreamSocket (const OStreamSocket& Socket) Copy constructor |
![]() | OStreamSocket () Creates an unattached socket |
![]() | read (void* pBuffer, long n) Retrieves n bytes from the stream and copies them into pBuffer |
![]() | recv (void* pBuffer, int BytesToRead, TSocketMsgFlag Flag= msg_normal) Tries to receives BytesToRead data from the connected socket, |
![]() | send (const void* pBuffer, int BytesToSend, TSocketMsgFlag Flag= msg_normal) Tries to sends BytesToSend data from the connected socket |
![]() | shutdown (TSocketDirection Direction= direction_readwrite) Closes a connection in a controlled manner |
![]() | write (const void* pBuffer, long n) Writes n bytes from pBuffer to the stream |
![]() | ~OStreamSocket () Destructor |
![]() | OStreamSocket (TAddrFamily Family, TProtocol Protocol, TSocketType Type= sock_stream) Creates a socket |
A socket to send or receive a stream of data
OStreamSocket(oslSocket Socket)
OStreamSocket(const OStreamSocket& Socket)
~OStreamSocket()
OStreamSocket& operator=(oslSocket Socket)
virtual long read(void* pBuffer, long n)
n - the number of bytes to read. pBuffer must be large enough
to hold the n bytes!
virtual long write(const void* pBuffer, long n)
n - the number of bytes to write.
virtual Boolean isEof()
int recv(void* pBuffer, int BytesToRead, TSocketMsgFlag Flag= msg_normal)
BytesToRead - [in] The number of bytes to read. pBuffer must have at least
this size.
Flag - [in] Modifier for the call. Valid values are:
int send(const void* pBuffer, int BytesToSend, TSocketMsgFlag Flag= msg_normal)
BytesToSend - [in] The number of bytes to send. pBuffer must have at least
this size.
Flag - [in] Modifier for the call. Valid values are:
Boolean shutdown(TSocketDirection Direction= direction_readwrite)
OStreamSocket(TAddrFamily Family, TProtocol Protocol, TSocketType Type= sock_stream)
Protocol -
Type - For some protocols it might be desirable to
use a different type than sock_stream (like sock_seqpacket).
Therefore we do not hide this parameter here.
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de