public void Connect() { XSocket.Connect(); Connected?.Invoke(this, EventArgs.Empty); Console.WriteLine("IServer: Connected to game server"); XSocket.Read(PacketStream); }
public void Connect(string ip, int port) { m_Client.Connect(ip, port); }