Base.TSocket.ConnectAsync C# (CSharp) Метод

ConnectAsync() публичный Метод

public ConnectAsync ( string host, int port ) : bool
host string
port int
Результат bool
		public bool ConnectAsync(string host, int port)
		{
			this.outArgs.RemoteEndPoint = new IPEndPoint(IPAddress.Parse(host), port);
			if (this.socket.ConnectAsync(this.outArgs))
			{
				return true;
			}
			OnConnectComplete(this.outArgs);
			return false;
		}