Метод | Описание | |
---|---|---|
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.
|
public static CanConnect ( this socket, string host, int port, System.TimeSpan timeout ) : bool | ||
socket | this | |
host | string | |
port | int | |
timeout | System.TimeSpan | |
Результат | bool |