C# Class Zoompf.SPDYAnalysis.TimeOutSocket

Helpful wrapper class, to try and do a TCP connect to a host and port, but to timeout during the connect if too much time passes
Mostra file Open project: zoompf/SPDYCheck

Public Methods

Method Description
Connect ( string host, int port, int timeoutMSec ) : TcpClient

Private Methods

Method Description
CallBackMethod ( IAsyncResult asyncresult ) : void

Method Details

Connect() public static method

public static Connect ( string host, int port, int timeoutMSec ) : TcpClient
host string
port int
timeoutMSec int
return System.Net.Sockets.TcpClient