C# Класс NContrib.Extensions.SocketExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

CanConnect() публичный статический Метод

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