Table of Contents

Class SocketConnection

Namespace
Alternet.Scripter.Debugger.Dap.Connections
Assembly
Alternet.Scripter.Debugger.Dap.v9.dll

Reperesents a duplex pipe over managed sockets

public sealed class SocketConnection : IMeasuredDuplexPipe, IDuplexPipe, IDisposable
Inheritance
SocketConnection
Implements

Properties

BytesRead

The total number of bytes read from the socket

BytesSent

The total number of bytes sent to the socket

Input

Connection for receiving data

LastReceived

The number of bytes received in the last read

Output

Connection for sending data

ShutdownKind

When possible, determines how the pipe first reached a close state

Socket

The underlying socket for this connection

SocketError

When the ShutdownKind relates to a socket error, may contain the socket error code

Methods

AssertDependencies()

Check that all dependencies are available

Create(Socket, PipeOptions, SocketConnectionOptions, string)

Create a SocketConnection instance over an existing socket

Create(Socket, PipeOptions, PipeOptions, SocketConnectionOptions, string)

Create a SocketConnection instance over an existing socket

Dispose()

Release any resources held by this instance

SetRecommendedClientOptions(Socket)

Set recommended socket options for client sockets

SetRecommendedServerOptions(Socket)

Set recommended socket options for server sockets

ToString()

Gets a string representation of this object

TrySetProtocolShutdown(PipeShutdownKind)

Try to signal the pipe shutdown reason as being due to an application protocol event