C# 클래스 NContrib.Extensions.SocketExtensions

파일 보기 프로젝트 열기: veracross/ncontrib

공개 메소드들

메소드 설명
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