Connection

Overview

Location

 

constructor (Binding)

 

constructor(binding: Binding)

 

Connection(Binding binding)

 

Sub New (binding As Binding)

Parameters:

  • binding:

constructor (Socket)

 

constructor(socket: Socket)

 

Connection(Socket socket)

 

Sub New (socket As Socket)

Parameters:

  • socket:

add_AsyncDisconnect

 

method add_AsyncDisconnect(value: EventHandler)

 

void add_AsyncDisconnect(EventHandler value)

 

Sub add_AsyncDisconnect(value As EventHandler)

Parameters:

  • value:

add_AsyncHaveIncompleteData

 

method add_AsyncHaveIncompleteData(value: EventHandler)

 

void add_AsyncHaveIncompleteData(EventHandler value)

 

Sub add_AsyncHaveIncompleteData(value As EventHandler)

Parameters:

  • value:

add_OnBytesReceived

 

method add_OnBytesReceived(value: EventHandler)

 

void add_OnBytesReceived(EventHandler value)

 

Sub add_OnBytesReceived(value As EventHandler)

Parameters:

  • value:

add_OnBytesSent

 

method add_OnBytesSent(value: EventHandler)

 

void add_OnBytesSent(EventHandler value)

 

Sub add_OnBytesSent(value As EventHandler)

Parameters:

  • value:

AsyncDisconnect

 

event AsyncDisconnect: EventHandler;

 

delegate EventHandler AsyncDisconnect()

 

Event AsyncDisconnect As EventHandler

AsyncHaveIncompleteData

 

event AsyncHaveIncompleteData: EventHandler;

 

delegate EventHandler AsyncHaveIncompleteData()

 

Event AsyncHaveIncompleteData As EventHandler

Available

 

property Available: Int32 read;

 

Int32 Available { get; }

 

Property ReadOnly Available As Int32

BeginConnect (EndPoint, AsyncCallback, Object): IAsyncResult

 

method BeginConnect(endPoint: EndPoint; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginConnect(EndPoint endPoint, AsyncCallback callback, Object state)

 

Function BeginConnect(endPoint As EndPoint, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • endPoint:
  • callback:
  • state:

BeginConnect (IPAddress, Int32, AsyncCallback, Object): IAsyncResult

 

method BeginConnect(address: IPAddress; port: Int32; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginConnect(IPAddress address, Int32 port, AsyncCallback callback, Object state)

 

Function BeginConnect(address As IPAddress, port As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • address:
  • port:
  • callback:
  • state:

BeginInitializeServerConnection

 

method BeginInitializeServerConnection(callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginInitializeServerConnection(AsyncCallback callback, Object state)

 

Function BeginInitializeServerConnection(callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • callback:
  • state:

BeginRead

 

method BeginRead(buffer: array of Byte; offset: Int32; count: Int32; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)

 

Function BeginRead(buffer As array of Byte, offset As Int32, count As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • count:
  • callback:
  • state:

BeginReadLine

 

method BeginReadLine(callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginReadLine(AsyncCallback callback, Object state)

 

Function BeginReadLine(callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • callback:
  • state:

BeginWrite

 

method BeginWrite(buffer: array of Byte; offset: Int32; count: Int32; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)

 

Function BeginWrite(buffer As array of Byte, offset As Int32, count As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • count:
  • callback:
  • state:

Binding

 

property Binding: Binding read;

 

Binding Binding { get; }

 

Property ReadOnly Binding As Binding

BufferedAsync

 

property BufferedAsync: Boolean read write;

 

Boolean BufferedAsync { get; set; }

 

Property BufferedAsync As Boolean

BufferReadLine

 

method BufferReadLine: String

 

String BufferReadLine()

 

Function BufferReadLine As String

BytesReceived

 

property BytesReceived: Int64 read;

 

Int64 BytesReceived { get; }

 

Property ReadOnly BytesReceived As Int64

BytesSent

 

property BytesSent: Int64 read;

 

Int64 BytesSent { get; }

 

Property ReadOnly BytesSent As Int64

CanRead

 

property CanRead: Boolean read;

 

Boolean CanRead { get; }

 

Property ReadOnly CanRead As Boolean

CanSeek

 

property CanSeek: Boolean read;

 

Boolean CanSeek { get; }

 

Property ReadOnly CanSeek As Boolean

CanWrite

 

property CanWrite: Boolean read;

 

Boolean CanWrite { get; }

 

Property ReadOnly CanWrite As Boolean

Close

 

method Close

 

void Close()

 

Sub Close

Connect (EndPoint)

 

method Connect(endPoint: EndPoint)

 

void Connect(EndPoint endPoint)

 

Sub Connect(endPoint As EndPoint)

Parameters:

  • endPoint:

Connect (IPAddress, Int32)

 

method Connect(address: IPAddress; port: Int32)

 

void Connect(IPAddress address, Int32 port)

 

Sub Connect(address As IPAddress, port As Int32)

Parameters:

  • address:
  • port:

Connected

 

property Connected: Boolean read;

 

Boolean Connected { get; }

 

Property ReadOnly Connected As Boolean

CRLF

 

var CRLF: array of Byte;

 

Byte[] CRLF

 

FIELD CRLF As array of Byte

DataSocket

 

property DataSocket: Socket read;

 

Socket DataSocket { get; }

 

Property ReadOnly DataSocket As Socket

DataSocketAvailable

 

property DataSocketAvailable: Int32 read;

 

Int32 DataSocketAvailable { get; }

 

Property ReadOnly DataSocketAvailable As Int32

DataSocketClose  protected

 

method DataSocketClose

 

void DataSocketClose()

 

Sub DataSocketClose

DataSocketClose (Boolean)  protected

 

method DataSocketClose(dispose: Boolean)

 

void DataSocketClose(Boolean dispose)

 

Sub DataSocketClose(dispose As Boolean)

Parameters:

  • dispose:

DataSocketConnect  protected

 

method DataSocketConnect(endPoint: EndPoint)

 

void DataSocketConnect(EndPoint endPoint)

 

Sub DataSocketConnect(endPoint As EndPoint)

Parameters:

  • endPoint:

DataSocketConnected

 

property DataSocketConnected: Boolean read;

 

Boolean DataSocketConnected { get; }

 

Property ReadOnly DataSocketConnected As Boolean

DataSocketReceiveWhatsAvailable  protected

 

method DataSocketReceiveWhatsAvailable(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 DataSocketReceiveWhatsAvailable(Byte[] buffer, Int32 offset, Int32 size)

 

Function DataSocketReceiveWhatsAvailable(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

DataSocketSend  protected

 

method DataSocketSend(buffer: array of Byte): Int32

 

Int32 DataSocketSend(Byte[] buffer)

 

Function DataSocketSend(buffer As array of Byte) As Int32

Parameters:

  • buffer:

DataSocketSendAsMuchAsPossible  protected

 

method DataSocketSendAsMuchAsPossible(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 DataSocketSendAsMuchAsPossible(Byte[] buffer, Int32 offset, Int32 size)

 

Function DataSocketSendAsMuchAsPossible(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

DEFAULT_MAX_LINE_LENGTH

 

const DEFAULT_MAX_LINE_LENGTH: Int32 = 4096;

 

const Int32 DEFAULT_MAX_LINE_LENGTH = 4096

 

Dim DEFAULT_MAX_LINE_LENGTH As Int32 = 4096

DEFAULT_TIMEOUT

 

const DEFAULT_TIMEOUT: Int32 = 300;

 

const Int32 DEFAULT_TIMEOUT = 300

 

Dim DEFAULT_TIMEOUT As Int32 = 300

Disconnect

 

method Disconnect

 

void Disconnect()

 

Sub Disconnect

Dispose

 

method Dispose

 

void Dispose()

 

Sub Dispose

EnableNagle

 

property EnableNagle: Boolean read write;

 

Boolean EnableNagle { get; set; }

 

Property EnableNagle As Boolean

Encoding

 

property Encoding: Encoding read write;

 

Encoding Encoding { get; set; }

 

Property Encoding As Encoding

EndConnect

 

method EndConnect(ar: IAsyncResult)

 

void EndConnect(IAsyncResult ar)

 

Sub EndConnect(ar As IAsyncResult)

Parameters:

  • ar:

EndInitializeServerConnection

 

method EndInitializeServerConnection(ar: IAsyncResult)

 

void EndInitializeServerConnection(IAsyncResult ar)

 

Sub EndInitializeServerConnection(ar As IAsyncResult)

Parameters:

  • ar:

EndRead

 

method EndRead(ar: IAsyncResult): Int32

 

Int32 EndRead(IAsyncResult ar)

 

Function EndRead(ar As IAsyncResult) As Int32

Parameters:

  • ar:

EndReadLine

 

method EndReadLine(ar: IAsyncResult): String

 

String EndReadLine(IAsyncResult ar)

 

Function EndReadLine(ar As IAsyncResult) As String

Parameters:

  • ar:

EndWrite

 

method EndWrite(ar: IAsyncResult)

 

void EndWrite(IAsyncResult ar)

 

Sub EndWrite(ar As IAsyncResult)

Parameters:

  • ar:

Flush

 

method Flush

 

void Flush()

 

Sub Flush

Init

 

method Init(socket: Socket)

 

void Init(Socket socket)

 

Sub Init(socket As Socket)

Parameters:

  • socket:

InitializeServerConnection

 

method InitializeServerConnection

 

void InitializeServerConnection()

 

Sub InitializeServerConnection

IntBeginRead  protected

 

method IntBeginRead(buffer: array of Byte; offset: Int32; count: Int32; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult IntBeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)

 

Function IntBeginRead(buffer As array of Byte, offset As Int32, count As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • count:
  • callback:
  • state:

IntBeginWrite  protected

 

method IntBeginWrite(buffer: array of Byte; offset: Int32; count: Int32; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult IntBeginWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)

 

Function IntBeginWrite(buffer As array of Byte, offset As Int32, count As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • count:
  • callback:
  • state:

IntEndRead  protected

 

method IntEndRead(ar: IAsyncResult): Int32

 

Int32 IntEndRead(IAsyncResult ar)

 

Function IntEndRead(ar As IAsyncResult) As Int32

Parameters:

  • ar:

IntEndWrite  protected

 

method IntEndWrite(ar: IAsyncResult)

 

void IntEndWrite(IAsyncResult ar)

 

Sub IntEndWrite(ar As IAsyncResult)

Parameters:

  • ar:

LastUsed

 

property LastUsed: DateTime read write;

 

DateTime LastUsed { get; set; }

 

Property LastUsed As DateTime

Length

 

property Length: Int64 read;

 

Int64 Length { get; }

 

Property ReadOnly Length As Int64

LF

 

var LF: array of Byte;

 

Byte[] LF

 

FIELD LF As array of Byte

LocalEndPoint

 

property LocalEndPoint: EndPoint read;

 

EndPoint LocalEndPoint { get; }

 

Property ReadOnly LocalEndPoint As EndPoint

MaxLineLength

 

property MaxLineLength: Int32 read write;

 

Int32 MaxLineLength { get; set; }

 

Property MaxLineLength As Int32

MaxLineLengthEnabled

 

property MaxLineLengthEnabled: Boolean read write;

 

Boolean MaxLineLengthEnabled { get; set; }

 

Property MaxLineLengthEnabled As Boolean

OnBytesReceived

 

event OnBytesReceived: EventHandler;

 

delegate EventHandler OnBytesReceived()

 

Event OnBytesReceived As EventHandler

OnBytesSent

 

event OnBytesSent: EventHandler;

 

delegate EventHandler OnBytesSent()

 

Event OnBytesSent As EventHandler

OriginalEndpoint

 

property OriginalEndpoint: EndPoint read write;

 

EndPoint OriginalEndpoint { get; set; }

 

Property OriginalEndpoint As EndPoint

Pool

 

property Pool: ConnectionPool read write;

 

ConnectionPool Pool { get; set; }

 

Property Pool As ConnectionPool

Position

 

property Position: Int64 read write;

 

Int64 Position { get; set; }

 

Property Position As Int64

Read

 

method Read(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 Read(Byte[] buffer, Int32 offset, Int32 size)

 

Function Read(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

ReadLine

 

method ReadLine: String

 

String ReadLine()

 

Function ReadLine As String

Receive (array of Byte): Int32

 

method Receive(buffer: array of Byte): Int32

 

Int32 Receive(Byte[] buffer)

 

Function Receive(buffer As array of Byte) As Int32

Parameters:

  • buffer:

Receive (array of Byte, Int32, Int32): Int32

 

method Receive(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 Receive(Byte[] buffer, Int32 offset, Int32 size)

 

Function Receive(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

ReceiveAllRemaining

 

method ReceiveAllRemaining: array of Byte

 

Byte[] ReceiveAllRemaining()

 

Function ReceiveAllRemaining As array of Byte

ReceiveAllRemaining (Int32): array of Byte

 

method ReceiveAllRemaining(bufferSize: Int32): array of Byte

 

Byte[] ReceiveAllRemaining(Int32 bufferSize)

 

Function ReceiveAllRemaining(bufferSize As Int32) As array of Byte

Parameters:

  • bufferSize:

ReceiveToStream (Stream)

 

method ReceiveToStream(stream: Stream)

 

void ReceiveToStream(Stream stream)

 

Sub ReceiveToStream(stream As Stream)

Parameters:

  • stream:

ReceiveToStream (Stream, Int64)

 

method ReceiveToStream(stream: Stream; size: Int64)

 

void ReceiveToStream(Stream stream, Int64 size)

 

Sub ReceiveToStream(stream As Stream, size As Int64)

Parameters:

  • stream:
  • size:

ReceiveToStream (Stream, Int64, Int32)

 

method ReceiveToStream(stream: Stream; size: Int64; bufferSize: Int32)

 

void ReceiveToStream(Stream stream, Int64 size, Int32 bufferSize)

 

Sub ReceiveToStream(stream As Stream, size As Int64, bufferSize As Int32)

Parameters:

  • stream:
  • size:
  • bufferSize:

ReceiveWhatsAvailable

 

method ReceiveWhatsAvailable(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 ReceiveWhatsAvailable(Byte[] buffer, Int32 offset, Int32 size)

 

Function ReceiveWhatsAvailable(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

RemoteEndPoint

 

property RemoteEndPoint: EndPoint read;

 

EndPoint RemoteEndPoint { get; }

 

Property ReadOnly RemoteEndPoint As EndPoint

remove_AsyncDisconnect

 

method remove_AsyncDisconnect(value: EventHandler)

 

void remove_AsyncDisconnect(EventHandler value)

 

Sub remove_AsyncDisconnect(value As EventHandler)

Parameters:

  • value:

remove_AsyncHaveIncompleteData

 

method remove_AsyncHaveIncompleteData(value: EventHandler)

 

void remove_AsyncHaveIncompleteData(EventHandler value)

 

Sub remove_AsyncHaveIncompleteData(value As EventHandler)

Parameters:

  • value:

remove_OnBytesReceived

 

method remove_OnBytesReceived(value: EventHandler)

 

void remove_OnBytesReceived(EventHandler value)

 

Sub remove_OnBytesReceived(value As EventHandler)

Parameters:

  • value:

remove_OnBytesSent

 

method remove_OnBytesSent(value: EventHandler)

 

void remove_OnBytesSent(EventHandler value)

 

Sub remove_OnBytesSent(value As EventHandler)

Parameters:

  • value:

ResetStatistics

 

method ResetStatistics

 

void ResetStatistics()

 

Sub ResetStatistics

Secure

 

property Secure: Boolean read;

 

Boolean Secure { get; }

 

Property ReadOnly Secure As Boolean

Seek

 

method Seek(offset: Int64; origin: SeekOrigin): Int64

 

Int64 Seek(Int64 offset, SeekOrigin origin)

 

Function Seek(offset As Int64, origin As SeekOrigin) As Int64

Parameters:

  • offset:
  • origin:

Send (array of Byte): Int32

 

method Send(buffer: array of Byte): Int32

 

Int32 Send(Byte[] buffer)

 

Function Send(buffer As array of Byte) As Int32

Parameters:

  • buffer:

Send (array of Byte, Int32, Int32): Int32

 

method Send(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 Send(Byte[] buffer, Int32 offset, Int32 size)

 

Function Send(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

SendFromStream (Stream)

 

method SendFromStream(stream: Stream)

 

void SendFromStream(Stream stream)

 

Sub SendFromStream(stream As Stream)

Parameters:

  • stream:

SendFromStream (Stream, Int64)

 

method SendFromStream(stream: Stream; size: Int64)

 

void SendFromStream(Stream stream, Int64 size)

 

Sub SendFromStream(stream As Stream, size As Int64)

Parameters:

  • stream:
  • size:

SendFromStream (Stream, Int64, Int32)

 

method SendFromStream(stream: Stream; size: Int64; bufferSize: Int32)

 

void SendFromStream(Stream stream, Int64 size, Int32 bufferSize)

 

Sub SendFromStream(stream As Stream, size As Int64, bufferSize As Int32)

Parameters:

  • stream:
  • size:
  • bufferSize:

SetLength

 

method SetLength(length: Int64)

 

void SetLength(Int64 length)

 

Sub SetLength(length As Int64)

Parameters:

  • length:

SkipBytes

 

method SkipBytes(size: Int32)

 

void SkipBytes(Int32 size)

 

Sub SkipBytes(size As Int32)

Parameters:

  • size:

StartTimeoutTimer  protected

 

method StartTimeoutTimer

 

void StartTimeoutTimer()

 

Sub StartTimeoutTimer

StopTimeoutTimer  protected

 

method StopTimeoutTimer

 

void StopTimeoutTimer()

 

Sub StopTimeoutTimer

TimedOut

 

property TimedOut: Boolean read;

 

Boolean TimedOut { get; }

 

Property ReadOnly TimedOut As Boolean

Timeout

 

property Timeout: Int32 read write;

 

Int32 Timeout { get; set; }

 

Property Timeout As Int32

TimeoutEnabled

 

property TimeoutEnabled: Boolean read write;

 

Boolean TimeoutEnabled { get; set; }

 

Property TimeoutEnabled As Boolean

ToString

 

method ToString: String

 

String ToString()

 

Function ToString As String

TriggerAsyncDisconnect

 

method TriggerAsyncDisconnect

 

void TriggerAsyncDisconnect()

 

Sub TriggerAsyncDisconnect

TriggerAsyncHaveIncompleteData  protected

 

method TriggerAsyncHaveIncompleteData

 

void TriggerAsyncHaveIncompleteData()

 

Sub TriggerAsyncHaveIncompleteData

TriggerOnBytesReceived  protected

 

method TriggerOnBytesReceived(count: Int64)

 

void TriggerOnBytesReceived(Int64 count)

 

Sub TriggerOnBytesReceived(count As Int64)

Parameters:

  • count:

TriggerOnBytesSent  protected

 

method TriggerOnBytesSent(count: Int64)

 

void TriggerOnBytesSent(Int64 count)

 

Sub TriggerOnBytesSent(count As Int64)

Parameters:

  • count:

Write

 

method Write(buffer: array of Byte; offset: Int32; size: Int32)

 

void Write(Byte[] buffer, Int32 offset, Int32 size)

 

Sub Write(buffer As array of Byte, offset As Int32, size As Int32)

Parameters:

  • buffer:
  • offset:
  • size:

WriteLine (String)

 

method WriteLine(line: String)

 

void WriteLine(String line)

 

Sub WriteLine(line As String)

Parameters:

  • line:

WriteLine (String, array of Object)

 

method WriteLine(line: String; params args: array of Object)

 

void WriteLine(String line, params Object[] args)

 

Sub WriteLine(line As String, ParamArray args As array of Object)

Parameters:

  • line:
  • args:

WriteLineLF (String)

 

method WriteLineLF(line: String)

 

void WriteLineLF(String line)

 

Sub WriteLineLF(line As String)

Parameters:

  • line:

WriteLineLF (String, array of Object)

 

method WriteLineLF(line: String; params args: array of Object)

 

void WriteLineLF(String line, params Object[] args)

 

Sub WriteLineLF(line As String, ParamArray args As array of Object)

Parameters:

  • line:
  • args:

 

DEFAULT_MAX_LINE_LENGTH

 

const DEFAULT_MAX_LINE_LENGTH: Int32 = 4096;

 

const Int32 DEFAULT_MAX_LINE_LENGTH = 4096

 

Dim DEFAULT_MAX_LINE_LENGTH As Int32 = 4096

DEFAULT_TIMEOUT

 

const DEFAULT_TIMEOUT: Int32 = 300;

 

const Int32 DEFAULT_TIMEOUT = 300

 

Dim DEFAULT_TIMEOUT As Int32 = 300

 

CRLF

 

var CRLF: array of Byte;

 

Byte[] CRLF

 

FIELD CRLF As array of Byte

LF

 

var LF: array of Byte;

 

Byte[] LF

 

FIELD LF As array of Byte

 

Available

 

property Available: Int32 read;

 

Int32 Available { get; }

 

Property ReadOnly Available As Int32

Binding

 

property Binding: Binding read;

 

Binding Binding { get; }

 

Property ReadOnly Binding As Binding

BufferedAsync

 

property BufferedAsync: Boolean read write;

 

Boolean BufferedAsync { get; set; }

 

Property BufferedAsync As Boolean

BytesReceived

 

property BytesReceived: Int64 read;

 

Int64 BytesReceived { get; }

 

Property ReadOnly BytesReceived As Int64

BytesSent

 

property BytesSent: Int64 read;

 

Int64 BytesSent { get; }

 

Property ReadOnly BytesSent As Int64

CanRead

 

property CanRead: Boolean read;

 

Boolean CanRead { get; }

 

Property ReadOnly CanRead As Boolean

CanSeek

 

property CanSeek: Boolean read;

 

Boolean CanSeek { get; }

 

Property ReadOnly CanSeek As Boolean

CanWrite

 

property CanWrite: Boolean read;

 

Boolean CanWrite { get; }

 

Property ReadOnly CanWrite As Boolean

Connected

 

property Connected: Boolean read;

 

Boolean Connected { get; }

 

Property ReadOnly Connected As Boolean

DataSocket

 

property DataSocket: Socket read;

 

Socket DataSocket { get; }

 

Property ReadOnly DataSocket As Socket

DataSocketAvailable

 

property DataSocketAvailable: Int32 read;

 

Int32 DataSocketAvailable { get; }

 

Property ReadOnly DataSocketAvailable As Int32

DataSocketConnected

 

property DataSocketConnected: Boolean read;

 

Boolean DataSocketConnected { get; }

 

Property ReadOnly DataSocketConnected As Boolean

EnableNagle

 

property EnableNagle: Boolean read write;

 

Boolean EnableNagle { get; set; }

 

Property EnableNagle As Boolean

Encoding

 

property Encoding: Encoding read write;

 

Encoding Encoding { get; set; }

 

Property Encoding As Encoding

LastUsed

 

property LastUsed: DateTime read write;

 

DateTime LastUsed { get; set; }

 

Property LastUsed As DateTime

Length

 

property Length: Int64 read;

 

Int64 Length { get; }

 

Property ReadOnly Length As Int64

LocalEndPoint

 

property LocalEndPoint: EndPoint read;

 

EndPoint LocalEndPoint { get; }

 

Property ReadOnly LocalEndPoint As EndPoint

MaxLineLength

 

property MaxLineLength: Int32 read write;

 

Int32 MaxLineLength { get; set; }

 

Property MaxLineLength As Int32

MaxLineLengthEnabled

 

property MaxLineLengthEnabled: Boolean read write;

 

Boolean MaxLineLengthEnabled { get; set; }

 

Property MaxLineLengthEnabled As Boolean

OriginalEndpoint

 

property OriginalEndpoint: EndPoint read write;

 

EndPoint OriginalEndpoint { get; set; }

 

Property OriginalEndpoint As EndPoint

Pool

 

property Pool: ConnectionPool read write;

 

ConnectionPool Pool { get; set; }

 

Property Pool As ConnectionPool

Position

 

property Position: Int64 read write;

 

Int64 Position { get; set; }

 

Property Position As Int64

RemoteEndPoint

 

property RemoteEndPoint: EndPoint read;

 

EndPoint RemoteEndPoint { get; }

 

Property ReadOnly RemoteEndPoint As EndPoint

Secure

 

property Secure: Boolean read;

 

Boolean Secure { get; }

 

Property ReadOnly Secure As Boolean

TimedOut

 

property TimedOut: Boolean read;

 

Boolean TimedOut { get; }

 

Property ReadOnly TimedOut As Boolean

Timeout

 

property Timeout: Int32 read write;

 

Int32 Timeout { get; set; }

 

Property Timeout As Int32

TimeoutEnabled

 

property TimeoutEnabled: Boolean read write;

 

Boolean TimeoutEnabled { get; set; }

 

Property TimeoutEnabled As Boolean

 

constructor (Binding)

 

constructor(binding: Binding)

 

Connection(Binding binding)

 

Sub New (binding As Binding)

Parameters:

  • binding:

constructor (Socket)

 

constructor(socket: Socket)

 

Connection(Socket socket)

 

Sub New (socket As Socket)

Parameters:

  • socket:

add_AsyncDisconnect

 

method add_AsyncDisconnect(value: EventHandler)

 

void add_AsyncDisconnect(EventHandler value)

 

Sub add_AsyncDisconnect(value As EventHandler)

Parameters:

  • value:

add_AsyncHaveIncompleteData

 

method add_AsyncHaveIncompleteData(value: EventHandler)

 

void add_AsyncHaveIncompleteData(EventHandler value)

 

Sub add_AsyncHaveIncompleteData(value As EventHandler)

Parameters:

  • value:

add_OnBytesReceived

 

method add_OnBytesReceived(value: EventHandler)

 

void add_OnBytesReceived(EventHandler value)

 

Sub add_OnBytesReceived(value As EventHandler)

Parameters:

  • value:

add_OnBytesSent

 

method add_OnBytesSent(value: EventHandler)

 

void add_OnBytesSent(EventHandler value)

 

Sub add_OnBytesSent(value As EventHandler)

Parameters:

  • value:

BeginConnect (EndPoint, AsyncCallback, Object): IAsyncResult

 

method BeginConnect(endPoint: EndPoint; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginConnect(EndPoint endPoint, AsyncCallback callback, Object state)

 

Function BeginConnect(endPoint As EndPoint, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • endPoint:
  • callback:
  • state:

BeginConnect (IPAddress, Int32, AsyncCallback, Object): IAsyncResult

 

method BeginConnect(address: IPAddress; port: Int32; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginConnect(IPAddress address, Int32 port, AsyncCallback callback, Object state)

 

Function BeginConnect(address As IPAddress, port As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • address:
  • port:
  • callback:
  • state:

BeginInitializeServerConnection

 

method BeginInitializeServerConnection(callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginInitializeServerConnection(AsyncCallback callback, Object state)

 

Function BeginInitializeServerConnection(callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • callback:
  • state:

BeginRead

 

method BeginRead(buffer: array of Byte; offset: Int32; count: Int32; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)

 

Function BeginRead(buffer As array of Byte, offset As Int32, count As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • count:
  • callback:
  • state:

BeginReadLine

 

method BeginReadLine(callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginReadLine(AsyncCallback callback, Object state)

 

Function BeginReadLine(callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • callback:
  • state:

BeginWrite

 

method BeginWrite(buffer: array of Byte; offset: Int32; count: Int32; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult BeginWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)

 

Function BeginWrite(buffer As array of Byte, offset As Int32, count As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • count:
  • callback:
  • state:

BufferReadLine

 

method BufferReadLine: String

 

String BufferReadLine()

 

Function BufferReadLine As String

Close

 

method Close

 

void Close()

 

Sub Close

Connect (EndPoint)

 

method Connect(endPoint: EndPoint)

 

void Connect(EndPoint endPoint)

 

Sub Connect(endPoint As EndPoint)

Parameters:

  • endPoint:

Connect (IPAddress, Int32)

 

method Connect(address: IPAddress; port: Int32)

 

void Connect(IPAddress address, Int32 port)

 

Sub Connect(address As IPAddress, port As Int32)

Parameters:

  • address:
  • port:

DataSocketClose  protected

 

method DataSocketClose

 

void DataSocketClose()

 

Sub DataSocketClose

DataSocketClose (Boolean)  protected

 

method DataSocketClose(dispose: Boolean)

 

void DataSocketClose(Boolean dispose)

 

Sub DataSocketClose(dispose As Boolean)

Parameters:

  • dispose:

DataSocketConnect  protected

 

method DataSocketConnect(endPoint: EndPoint)

 

void DataSocketConnect(EndPoint endPoint)

 

Sub DataSocketConnect(endPoint As EndPoint)

Parameters:

  • endPoint:

DataSocketReceiveWhatsAvailable  protected

 

method DataSocketReceiveWhatsAvailable(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 DataSocketReceiveWhatsAvailable(Byte[] buffer, Int32 offset, Int32 size)

 

Function DataSocketReceiveWhatsAvailable(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

DataSocketSend  protected

 

method DataSocketSend(buffer: array of Byte): Int32

 

Int32 DataSocketSend(Byte[] buffer)

 

Function DataSocketSend(buffer As array of Byte) As Int32

Parameters:

  • buffer:

DataSocketSendAsMuchAsPossible  protected

 

method DataSocketSendAsMuchAsPossible(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 DataSocketSendAsMuchAsPossible(Byte[] buffer, Int32 offset, Int32 size)

 

Function DataSocketSendAsMuchAsPossible(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

Disconnect

 

method Disconnect

 

void Disconnect()

 

Sub Disconnect

Dispose

 

method Dispose

 

void Dispose()

 

Sub Dispose

EndConnect

 

method EndConnect(ar: IAsyncResult)

 

void EndConnect(IAsyncResult ar)

 

Sub EndConnect(ar As IAsyncResult)

Parameters:

  • ar:

EndInitializeServerConnection

 

method EndInitializeServerConnection(ar: IAsyncResult)

 

void EndInitializeServerConnection(IAsyncResult ar)

 

Sub EndInitializeServerConnection(ar As IAsyncResult)

Parameters:

  • ar:

EndRead

 

method EndRead(ar: IAsyncResult): Int32

 

Int32 EndRead(IAsyncResult ar)

 

Function EndRead(ar As IAsyncResult) As Int32

Parameters:

  • ar:

EndReadLine

 

method EndReadLine(ar: IAsyncResult): String

 

String EndReadLine(IAsyncResult ar)

 

Function EndReadLine(ar As IAsyncResult) As String

Parameters:

  • ar:

EndWrite

 

method EndWrite(ar: IAsyncResult)

 

void EndWrite(IAsyncResult ar)

 

Sub EndWrite(ar As IAsyncResult)

Parameters:

  • ar:

Flush

 

method Flush

 

void Flush()

 

Sub Flush

Init

 

method Init(socket: Socket)

 

void Init(Socket socket)

 

Sub Init(socket As Socket)

Parameters:

  • socket:

InitializeServerConnection

 

method InitializeServerConnection

 

void InitializeServerConnection()

 

Sub InitializeServerConnection

IntBeginRead  protected

 

method IntBeginRead(buffer: array of Byte; offset: Int32; count: Int32; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult IntBeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)

 

Function IntBeginRead(buffer As array of Byte, offset As Int32, count As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • count:
  • callback:
  • state:

IntBeginWrite  protected

 

method IntBeginWrite(buffer: array of Byte; offset: Int32; count: Int32; callback: AsyncCallback; state: Object): IAsyncResult

 

IAsyncResult IntBeginWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)

 

Function IntBeginWrite(buffer As array of Byte, offset As Int32, count As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • count:
  • callback:
  • state:

IntEndRead  protected

 

method IntEndRead(ar: IAsyncResult): Int32

 

Int32 IntEndRead(IAsyncResult ar)

 

Function IntEndRead(ar As IAsyncResult) As Int32

Parameters:

  • ar:

IntEndWrite  protected

 

method IntEndWrite(ar: IAsyncResult)

 

void IntEndWrite(IAsyncResult ar)

 

Sub IntEndWrite(ar As IAsyncResult)

Parameters:

  • ar:

Read

 

method Read(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 Read(Byte[] buffer, Int32 offset, Int32 size)

 

Function Read(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

ReadLine

 

method ReadLine: String

 

String ReadLine()

 

Function ReadLine As String

Receive (array of Byte): Int32

 

method Receive(buffer: array of Byte): Int32

 

Int32 Receive(Byte[] buffer)

 

Function Receive(buffer As array of Byte) As Int32

Parameters:

  • buffer:

Receive (array of Byte, Int32, Int32): Int32

 

method Receive(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 Receive(Byte[] buffer, Int32 offset, Int32 size)

 

Function Receive(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

ReceiveAllRemaining

 

method ReceiveAllRemaining: array of Byte

 

Byte[] ReceiveAllRemaining()

 

Function ReceiveAllRemaining As array of Byte

ReceiveAllRemaining (Int32): array of Byte

 

method ReceiveAllRemaining(bufferSize: Int32): array of Byte

 

Byte[] ReceiveAllRemaining(Int32 bufferSize)

 

Function ReceiveAllRemaining(bufferSize As Int32) As array of Byte

Parameters:

  • bufferSize:

ReceiveToStream (Stream)

 

method ReceiveToStream(stream: Stream)

 

void ReceiveToStream(Stream stream)

 

Sub ReceiveToStream(stream As Stream)

Parameters:

  • stream:

ReceiveToStream (Stream, Int64)

 

method ReceiveToStream(stream: Stream; size: Int64)

 

void ReceiveToStream(Stream stream, Int64 size)

 

Sub ReceiveToStream(stream As Stream, size As Int64)

Parameters:

  • stream:
  • size:

ReceiveToStream (Stream, Int64, Int32)

 

method ReceiveToStream(stream: Stream; size: Int64; bufferSize: Int32)

 

void ReceiveToStream(Stream stream, Int64 size, Int32 bufferSize)

 

Sub ReceiveToStream(stream As Stream, size As Int64, bufferSize As Int32)

Parameters:

  • stream:
  • size:
  • bufferSize:

ReceiveWhatsAvailable

 

method ReceiveWhatsAvailable(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 ReceiveWhatsAvailable(Byte[] buffer, Int32 offset, Int32 size)

 

Function ReceiveWhatsAvailable(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

remove_AsyncDisconnect

 

method remove_AsyncDisconnect(value: EventHandler)

 

void remove_AsyncDisconnect(EventHandler value)

 

Sub remove_AsyncDisconnect(value As EventHandler)

Parameters:

  • value:

remove_AsyncHaveIncompleteData

 

method remove_AsyncHaveIncompleteData(value: EventHandler)

 

void remove_AsyncHaveIncompleteData(EventHandler value)

 

Sub remove_AsyncHaveIncompleteData(value As EventHandler)

Parameters:

  • value:

remove_OnBytesReceived

 

method remove_OnBytesReceived(value: EventHandler)

 

void remove_OnBytesReceived(EventHandler value)

 

Sub remove_OnBytesReceived(value As EventHandler)

Parameters:

  • value:

remove_OnBytesSent

 

method remove_OnBytesSent(value: EventHandler)

 

void remove_OnBytesSent(EventHandler value)

 

Sub remove_OnBytesSent(value As EventHandler)

Parameters:

  • value:

ResetStatistics

 

method ResetStatistics

 

void ResetStatistics()

 

Sub ResetStatistics

Seek

 

method Seek(offset: Int64; origin: SeekOrigin): Int64

 

Int64 Seek(Int64 offset, SeekOrigin origin)

 

Function Seek(offset As Int64, origin As SeekOrigin) As Int64

Parameters:

  • offset:
  • origin:

Send (array of Byte): Int32

 

method Send(buffer: array of Byte): Int32

 

Int32 Send(Byte[] buffer)

 

Function Send(buffer As array of Byte) As Int32

Parameters:

  • buffer:

Send (array of Byte, Int32, Int32): Int32

 

method Send(buffer: array of Byte; offset: Int32; size: Int32): Int32

 

Int32 Send(Byte[] buffer, Int32 offset, Int32 size)

 

Function Send(buffer As array of Byte, offset As Int32, size As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • size:

SendFromStream (Stream)

 

method SendFromStream(stream: Stream)

 

void SendFromStream(Stream stream)

 

Sub SendFromStream(stream As Stream)

Parameters:

  • stream:

SendFromStream (Stream, Int64)

 

method SendFromStream(stream: Stream; size: Int64)

 

void SendFromStream(Stream stream, Int64 size)

 

Sub SendFromStream(stream As Stream, size As Int64)

Parameters:

  • stream:
  • size:

SendFromStream (Stream, Int64, Int32)

 

method SendFromStream(stream: Stream; size: Int64; bufferSize: Int32)

 

void SendFromStream(Stream stream, Int64 size, Int32 bufferSize)

 

Sub SendFromStream(stream As Stream, size As Int64, bufferSize As Int32)

Parameters:

  • stream:
  • size:
  • bufferSize:

SetLength

 

method SetLength(length: Int64)

 

void SetLength(Int64 length)

 

Sub SetLength(length As Int64)

Parameters:

  • length:

SkipBytes

 

method SkipBytes(size: Int32)

 

void SkipBytes(Int32 size)

 

Sub SkipBytes(size As Int32)

Parameters:

  • size:

StartTimeoutTimer  protected

 

method StartTimeoutTimer

 

void StartTimeoutTimer()

 

Sub StartTimeoutTimer

StopTimeoutTimer  protected

 

method StopTimeoutTimer

 

void StopTimeoutTimer()

 

Sub StopTimeoutTimer

ToString

 

method ToString: String

 

String ToString()

 

Function ToString As String

TriggerAsyncDisconnect

 

method TriggerAsyncDisconnect

 

void TriggerAsyncDisconnect()

 

Sub TriggerAsyncDisconnect

TriggerAsyncHaveIncompleteData  protected

 

method TriggerAsyncHaveIncompleteData

 

void TriggerAsyncHaveIncompleteData()

 

Sub TriggerAsyncHaveIncompleteData

TriggerOnBytesReceived  protected

 

method TriggerOnBytesReceived(count: Int64)

 

void TriggerOnBytesReceived(Int64 count)

 

Sub TriggerOnBytesReceived(count As Int64)

Parameters:

  • count:

TriggerOnBytesSent  protected

 

method TriggerOnBytesSent(count: Int64)

 

void TriggerOnBytesSent(Int64 count)

 

Sub TriggerOnBytesSent(count As Int64)

Parameters:

  • count:

Write

 

method Write(buffer: array of Byte; offset: Int32; size: Int32)

 

void Write(Byte[] buffer, Int32 offset, Int32 size)

 

Sub Write(buffer As array of Byte, offset As Int32, size As Int32)

Parameters:

  • buffer:
  • offset:
  • size:

WriteLine (String)

 

method WriteLine(line: String)

 

void WriteLine(String line)

 

Sub WriteLine(line As String)

Parameters:

  • line:

WriteLine (String, array of Object)

 

method WriteLine(line: String; params args: array of Object)

 

void WriteLine(String line, params Object[] args)

 

Sub WriteLine(line As String, ParamArray args As array of Object)

Parameters:

  • line:
  • args:

WriteLineLF (String)

 

method WriteLineLF(line: String)

 

void WriteLineLF(String line)

 

Sub WriteLineLF(line As String)

Parameters:

  • line:

WriteLineLF (String, array of Object)

 

method WriteLineLF(line: String; params args: array of Object)

 

void WriteLineLF(String line, params Object[] args)

 

Sub WriteLineLF(line As String, ParamArray args As array of Object)

Parameters:

  • line:
  • args:

 

AsyncDisconnect

 

event AsyncDisconnect: EventHandler;

 

delegate EventHandler AsyncDisconnect()

 

Event AsyncDisconnect As EventHandler

AsyncHaveIncompleteData

 

event AsyncHaveIncompleteData: EventHandler;

 

delegate EventHandler AsyncHaveIncompleteData()

 

Event AsyncHaveIncompleteData As EventHandler

OnBytesReceived

 

event OnBytesReceived: EventHandler;

 

delegate EventHandler OnBytesReceived()

 

Event OnBytesReceived As EventHandler

OnBytesSent

 

event OnBytesSent: EventHandler;

 

delegate EventHandler OnBytesSent()

 

Event OnBytesSent As EventHandler

Descendants