C# Class AK.F1.Timing.Server.Proxy.ProxySession

This class cannot be inherited.
Inheritance: DisposableBase
Show file Open project: simoneb/ak-f1-timing Class Usage Examples

Public Methods

Method Description
CompleteAsync ( ) : void

Signals that the session should complete when all pending buffers have been sent.

ProxySession ( int id, Socket client ) : System

Initialises a new instance of the AK.F1.Timing.Server.Proxy.ProxySession class and specifies the session identifier and client socket.

SendAsync ( ByteBufferSnapshot buffer ) : void

Begins an asynchronous operation to send the specified buffer.

SendAsync ( IEnumerable buffers ) : void

Begins an asynchronous operation to send the specified buffers.

Protected Methods

Method Description
DisposeOfManagedResources ( ) : void

Private Methods

Method Description
Disconnect ( ) : void
DisconnectCallback ( ) : void
Dispose ( ) : void
OnSocketOperationCompleted ( object sender, SocketAsyncEventArgs e ) : void
SendNextBuffer ( ) : void
SendNextBufferIfNotBusy ( ) : void
SendNextPartialBufferSegment ( ) : void
SendOutputBuffer ( int count ) : void
SendOutputBufferCallback ( ) : void
TrySetBusy ( ) : bool

Method Details

CompleteAsync() public method

Signals that the session should complete when all pending buffers have been sent.
/// Thrown when the this instance has been disposed of. ///
public CompleteAsync ( ) : void
return void

DisposeOfManagedResources() protected method

protected DisposeOfManagedResources ( ) : void
return void

ProxySession() public method

Initialises a new instance of the AK.F1.Timing.Server.Proxy.ProxySession class and specifies the session identifier and client socket.
/// Thrown when is . ///
public ProxySession ( int id, Socket client ) : System
id int The session identifier.
client System.Net.Sockets.Socket The client .
return System

SendAsync() public method

Begins an asynchronous operation to send the specified buffer.
/// Thrown when the this instance has been disposed of. ///
public SendAsync ( ByteBufferSnapshot buffer ) : void
buffer AK.F1.Timing.Server.IO.ByteBufferSnapshot The buffer to send.
return void

SendAsync() public method

Begins an asynchronous operation to send the specified buffers.
/// Thrown when is . /// /// Thrown when the this instance has been disposed of. ///
public SendAsync ( IEnumerable buffers ) : void
buffers IEnumerable The buffers to send.
return void