public void Login(string id, string password) { if (Status != (int)ClientSocketStatus.Connected) { throw new InvalidOperationException("Not connected!"); } Utils.SendPacket(SocketStream, PacketFactory.CreateClientLoginRequest(id, password, ClientType.Manager, CryptoProvider.CryptoStream)); }