public override void Connect(ConoConnect connect) { LobbyOwner owner = new LobbyOwner(connect); owner.Connect = connect; connect.SetOwner(owner); FrontLobbyPacket.ConnectResPacket packet = new FrontLobbyPacket.ConnectResPacket(); packet.serverNo = FrontManager.Instance.OwnerNo; packet.sessionId = "0"; byte[] data = FrontLobbyPacket.Serialize(packet); connect.Send(data, data.Length); }
public override void Connect(ConoConnect connect) { if (connect == null) { Console.WriteLine("connect null"); return; } FrontUser user = new FrontUser(connect); user.Connect = connect; connect.SetOwner(user); ClientFrontPacket.ConnectInfoNotifyPacket packet = new ClientFrontPacket.ConnectInfoNotifyPacket(); packet.sessionId = user.SessionId; byte[] data = ClientFrontPacket.Serialize(packet); connect.Send(data, data.Length); }