C# Class SocketServers.SocketRecycling

Inheritance: IDisposable
Mostra file Open project: vf1/serversockets

Public Methods

Method Description
Dispose ( ) : void
Get ( AddressFamily family ) : Socket
Recycle ( Socket socket, AddressFamily family ) : bool
SocketRecycling ( int maxSocket ) : System

Private Methods

Method Description
GetFull ( AddressFamily family ) : LockFreeStack

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Get() public method

public Get ( AddressFamily family ) : Socket
family AddressFamily
return Socket

Recycle() public method

public Recycle ( Socket socket, AddressFamily family ) : bool
socket Socket
family AddressFamily
return bool

SocketRecycling() public method

public SocketRecycling ( int maxSocket ) : System
maxSocket int
return System