SocketTransport
Namespace: E2E.Engine.Protocol
public sealed class SocketTransport : IEngineTransportConnects 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
Constructors
Section titled “Constructors”SocketTransport(SocketTransportOptions)
Section titled “SocketTransport(SocketTransportOptions)”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 |
Properties
Section titled “Properties”public string Label { get; }A short description for error messages: the command, or the address.
Value: string
Methods
Section titled “Methods”OpenAsync(TransportContext)
Section titled “OpenAsync(TransportContext)”public Task<ITransportConnection> OpenAsync(TransportContext context)Parameters
| Name | Type | Description |
|---|---|---|
context |
TransportContext |
Returns: Task<ITransportConnection>