Skip to content

SocketTransport

Namespace: E2E.Engine.Protocol

public sealed class SocketTransport : IEngineTransport

Connects to a server already listening on a TCP port: a server on another machine, or one a launcher forwarded from a device. The server outlives the connection; closing ends the socket only. Upstream’s socketTransport.

Inheritance: object

Implements: IEngineTransport

View source

public SocketTransport(SocketTransportOptions options)

Connects to a server already listening on a TCP port: a server on another machine, or one a launcher forwarded from a device. The server outlives the connection; closing ends the socket only. Upstream’s socketTransport.

Parameters

Name Type Description
options SocketTransportOptions

public string Label { get; }

A short description for error messages: the command, or the address.

Value: string

public Task<ITransportConnection> OpenAsync(TransportContext context)

Parameters

Name Type Description
context TransportContext

Returns: Task<ITransportConnection>