SocketContainer

Description

abstract class Tinman.Core.IO.Sockets.SocketContainer

Derived from

Disposable abstract

Abstract base for classes that wrap a native network socket.

Protected / Constructors

Socket​Container


protected constructor SocketContainer → ()

Creates a new instance of SocketContainer.

IOException

If an I/O error has occurred.

Protected / Methods

Set​Blocking


protected method SetBlocking → (1)

blocking in : bool

true for blocking mode,
false for non-blocking mode,

Sets the blocking mode of the native socket.

IOException

If an I/O error has occurred.

Set​Timeout


protected method SetTimeout → (2)

sendOrReceive in : bool

true to set the send timeout,
false to set the receive timeout.

timeout in : int32

The timeout to set, in milliseconds. Zero or negative means no timeout.

Sets the send or receive timeout of the native socket.

IOException

If an I/O error has occurred.

Shutdown


protected method Shutdown → (1)

discard in : bool

true : forcefully discard the connection,
false : gracefully close the connection,

Initiates a graceful shutdown of the native socket.

IOException

If an I/O error has occurred.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.