コード例 #1
0
        public RegisterClusterSuccesful(uint clusterId, bool succesful, PushSocket socket)
        {
            OutgoingInterserverPacket packet = new OutgoingInterserverPacket(OpCodes.REGISTER_CLUSTER_REQUEST_SUCCESFUL);

            packet.Write(clusterId);
            packet.Write(succesful);
            packet.Send(socket);
        }
コード例 #2
0
        public RegisterChannelRequestSuccesful(bool accepted, uint channelId, PushSocket socket)
        {
            OutgoingInterserverPacket packet = new OutgoingInterserverPacket(OpCodes.REGISTER_CHANNEL_REQUEST_SUCCESFUL);

            packet.Write(accepted);
            packet.Write(channelId);
            packet.Send(socket);
        }
コード例 #3
0
        public RegisterNewChannelSuccesful(uint channelId, bool succesful, PushSocket socket)
        {
            OutgoingInterserverPacket packet = new OutgoingInterserverPacket(OpCodes.REGISTER_NEW_CHANNEL_SUCCESFUL);

            packet.Write(channelId);
            packet.Write(succesful);
            packet.Send(socket);
        }
コード例 #4
0
        public RegisterClusterRequest(uint clusterId, string authorizationPassword, string ip, string sendPort, PublisherSocket socket)
        {
            OutgoingInterserverPacket packet = new OutgoingInterserverPacket(OpCodes.REGISTER_CLUSTER_REQUEST);

            packet.Write(clusterId);
            packet.Write(authorizationPassword);
            packet.Write(ip);
            packet.Write(sendPort);
            packet.Send(socket, "SharpFlyLogin");
        }
コード例 #5
0
        public RegisterNewChannelRequest(uint clusterId, string authorizationPassword, string name, uint playerCount, uint maxPlayerCount, PublisherSocket socket)
        {
            OutgoingInterserverPacket packet = new OutgoingInterserverPacket(OpCodes.REGISTER_NEW_CHANNEL);

            packet.Write(authorizationPassword);
            packet.Write(clusterId);
            packet.Write(name);
            packet.Write(playerCount);
            packet.Write(maxPlayerCount);
            packet.Send(socket);
        }
コード例 #6
0
        public RegisterChannelRequest(string authorizationPassword, string ip, string sendPort, string name, uint maxPlayerCount, PublisherSocket socket)
        {
            OutgoingInterserverPacket packet = new OutgoingInterserverPacket(OpCodes.REGISTER_CHANNEL_REQUEST);

            packet.Write(authorizationPassword);
            packet.Write(ip);
            packet.Write(sendPort);
            packet.Write(name);
            packet.Write(maxPlayerCount);
            packet.Send(socket, "SharpFlyCluster");
        }