Свойство | Тип | Описание | |
---|---|---|---|
Host | string |
Метод | Описание | |
---|---|---|
Acquire ( ) : |
Gets a socket from the pool. If there are no free sockets, a new one will be created. If something goes wrong while creating the new socket, this pool's endpoint will be marked as dead and all subsequent calls to this method will return null until the retry interval has passed.
|
|
Return ( |
Returns a socket to the pool. If the socket is dead, it will be destroyed. If there are more than MaxPoolSize sockets in the pool, it will be destroyed. If there are less than MinPoolSize sockets in the pool, it will always be put back. If there are something inbetween those values, the age of the socket is checked. If it is older than the SocketRrecycleAge, it is destroyed, otherwise it will be put back in the pool.
|
|
SocketPool ( ServerPool owner, string host ) : System | ||
getEndPoint ( string host ) : |
This method parses the given string into an IPEndPoint. If the string is malformed in some way, or if the host cannot be resolved, this method will throw an exception.
|