IServer

Description

interface Tinman.Core.IO.Sockets.IServer

Derived from

IDisposable

Base interface for classes that act as network servers.

See also

IEndPoint

Public / Methods

Accept


[OwnerReturn]
public method Accept → (1)

block opt : bool = true

true to block until a connection has been accepted,
false to not block and to return pending connections only.

returns → IConnection

The accepted IConnection or null iff the server socket has been closed via IDisposable.Dispose or block opt is false and there are no pending connections.

Accepts a new client connection to this server.

IOException

If an I/O error has occurred.

Public / Attributes

End​Point


public attribute EndPoint → (get)

value : IEndPoint

[not-null]
The network endpoint address.

Returns the network endpoint address of this server.