Skip to content

Std socket socketstream

std:std.socket.SocketStream

Class SocketStream Extends Stream#

The SocketStream class.

A socket stream provides a 'wrapper' around a socket that lets you read and write the socket as if it was a stream.

Constructors
New Creates a new socketsteam from an existing socket.
Properties
Eof True if socket has been closed. (read only)
Length Always -1. (read only)
Position Always 0. (read only)
Socket The underlying socket. (read only)
Methods
OnClose Closes the socket.
Read Reads data from the socket stream.
Seek No operation.
Write Writes data to the socket stream.