Jump to content

BlitzMax/Modules/Streams/Socket streams

From Wikibooks, open books for an open world

Functions

[edit | edit source]

CreateSocketStream

[edit | edit source]

Function CreateSocketStream:TSocketStream( socket:TSocket,autoClose=True )

Description: Create a socket stream

Returns: A new socket stream

Information: A socket stream allows you to treat a socket as if it were a stream.

If autoClose is true, socket will be automatically closed when the socket stream is closed. Otherwise, it is up to you to somehow close socket at a later time.

SocketStreamSocket

[edit | edit source]

Function SocketStreamSocket:TSocket( stream:TSocketStream )

Description: Get underlying socket from a socket stream

Returns: The socket used to create the socket stream