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

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
DisposeOfManagedResources ( ) : void

Private Methods

Méthode 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 méthode

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
Résultat void

DisposeOfManagedResources() protected méthode

protected DisposeOfManagedResources ( ) : void
Résultat void

ProxySession() public méthode

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 .
Résultat System

SendAsync() public méthode

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.
Résultat void

SendAsync() public méthode

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.
Résultat void