mhe.Protocol.Connect C# (CSharp) Method

Connect() public method

public Connect ( string host, int port ) : bool
host string
port int
return bool
        public bool Connect(string host, int port)
        {
            try
            {
                client = new TcpClient();
                client.Connect(host, port);
            }
            catch (Exception e)
            {
                Log.Write("Cought an exception during the Connect() method:" + e.ToString());
                return false;
            }

            return true;
        }