Свойство | Тип | Описание | |
---|---|---|---|
BufferManager | |||
BufferSizePerEventArg | int | ||
ConcurrentAcceptPoolSize | int | ||
ConnectionEnforceMode | EnforceMode | ||
FullErrorMessage | string | ||
Listener | Socket | ||
MaxConnectionsEnforcer | |||
MaxNumConnections | int | ||
SocketAcceptPool | |||
SocketReadWritePool | |||
WaitTimeout | int |
Метод | Описание | |
---|---|---|
Dispose ( ) : void |
Releases all Objects held by this socket. Will also shutdown the socket if its still running
|
|
GamespyTcpSocket ( int Port, int MaxConnections ) : System |
Creates a new TCP socket for handling Gamespy Protocol
|
|
Release ( |
Releases the Stream's SocketAsyncEventArgs back to the pool, and free's up another slot for a new client to connect
|
Метод | Описание | |
---|---|---|
PrepareAccept ( |
Once a connection has been received, its handed off here to convert it into our client object, and prepared to be handed off to the parent for processing
|
|
ProcessAccept ( |
When a new connection is established, the parent class is responsible for processing the connected client
|
|
ShutdownSocket ( ) : void |
When called, this method will stop accepting new clients, and stop all I/O ops on all connections. Dispose still needs to be called afterwards!
|
|
StartAcceptAsync ( ) : void |
Begins accepting a new Connection asynchronously
|
public GamespyTcpSocket ( int Port, int MaxConnections ) : System | ||
Port | int | The port this socket will be bound to |
MaxConnections | int | The maximum number of concurrent connections |
Результат | System |
protected PrepareAccept ( |
||
AcceptEventArg | ||
Результат | void |
protected abstract ProcessAccept ( |
||
Stream | A GamespyTcpStream object that wraps the I/O AsyncEventArgs and socket | |
Результат | void |
public Release ( |
||
Stream | The GamespyTcpStream object that is being released. | |
Результат | void |
protected BufferManager,BF2Statistics.Net BufferManager | ||
Результат |
protected EnforceMode ConnectionEnforceMode | ||
Результат | EnforceMode |
protected SemaphoreSlim,System.Threading MaxConnectionsEnforcer | ||
Результат |
protected SocketAsyncEventArgsPool,BF2Statistics.Net SocketAcceptPool | ||
Результат |
protected SocketAsyncEventArgsPool,BF2Statistics.Net SocketReadWritePool | ||
Результат |