C# 클래스 OpenNos.Core.Networking.Communication.Scs.Client.Tcp.TcpHelper

This class is used to simplify TCP socket operations.
파일 보기 프로젝트 열기: OpenNos/OpenNos

공개 메소드들

메소드 설명
ConnectToServer ( EndPoint endPoint, int timeoutMs ) : Socket

This code is used to connect to a TCP socket with timeout option.

메소드 상세

ConnectToServer() 공개 정적인 메소드

This code is used to connect to a TCP socket with timeout option.
Throws SocketException if can not connect. /// Throws TimeoutException if can not connect within specified timeoutMs ///
public static ConnectToServer ( EndPoint endPoint, int timeoutMs ) : Socket
endPoint System.Net.EndPoint IP endpoint of remote server
timeoutMs int Timeout to wait until connect
리턴 Socket