C# Класс AK.F1.Timing.Server.Proxy.ProxySession

This class cannot be inherited.
Наследование: DisposableBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
DisposeOfManagedResources ( ) : void

Приватные методы

Метод Описание
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

Описание методов

CompleteAsync() публичный метод

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
Результат void

DisposeOfManagedResources() защищенный метод

protected DisposeOfManagedResources ( ) : void
Результат void

ProxySession() публичный метод

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 .
Результат System

SendAsync() публичный метод

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.
Результат void

SendAsync() публичный метод

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.
Результат void