/** * Starts establishing a connection with the given host on the given port */ public void Connect(string host, int port) { _lastHost = host; _lastPort = port; _tcpNetClient.Connect(host, port); }
public void ConnectToLoginServer() { tcpNetClient = new TcpNetClient(); tcpNetClient.connectAction += this.OnConnectToLoginServerFinish; tcpNetClient.Connect("127.0.0.1", 5151); }