C# Class TSystems.RELOAD.Util.TimeoutSocket

Mostra file Open project: RELOAD-NET/RELOAD.NET

Public Methods

Method Description
Accept ( Socket listeningSocket, int acceptTimeout ) : Socket
Connect ( Socket connectingSocket, IPEndPoint connectEndPoint, int connectTimeout ) : void

Private Methods

Method Description
AcceptCallback ( IAsyncResult ar ) : void
AcceptThread ( object data ) : void
ConnectCallback ( IAsyncResult ar ) : void
ConnectThread ( object data ) : void

Method Details

Accept() public static method

public static Accept ( Socket listeningSocket, int acceptTimeout ) : Socket
listeningSocket Socket
acceptTimeout int
return Socket

Connect() public static method

public static Connect ( Socket connectingSocket, IPEndPoint connectEndPoint, int connectTimeout ) : void
connectingSocket Socket
connectEndPoint System.Net.IPEndPoint
connectTimeout int
return void