C# Class NContrib.Extensions.SocketExtensions

Afficher le fichier Open project: veracross/ncontrib

Méthodes publiques

Méthode Description
CanConnect ( this socket, string host, int port, System.TimeSpan timeout ) : bool

Attempts connecting to the given host and port with a timeout. If the timeout limit is reached, the connection is dropped.

Method Details

CanConnect() public static méthode

Attempts connecting to the given host and port with a timeout. If the timeout limit is reached, the connection is dropped.
public static CanConnect ( this socket, string host, int port, System.TimeSpan timeout ) : bool
socket this
host string
port int
timeout System.TimeSpan
Résultat bool