Exemple #1
0
 public void SendMessage(short opCode, ResponseCallback responseCallback)
 {
     SendMessage(MessageHelper.Create(opCode), responseCallback);
 }
Exemple #2
0
 public void SendMessage(short opCode, byte[] data)
 {
     SendMessage(MessageHelper.Create(opCode, data), DeliveryMethod.ReliableUnordered);
 }
Exemple #3
0
        public void SendMessage(short opCode, ISerializablePacket packet, ResponseCallback responseCallback)
        {
            var message = MessageHelper.Create(opCode, packet.ToBytes());

            SendMessage(message, responseCallback);
        }
Exemple #4
0
        public void SendMessage(short opCode, ISerializablePacket packet, ResponseCallback responseCallback, int timeoutSecs)
        {
            var message = MessageHelper.Create(opCode, packet.ToBytes());

            SendMessage(message, responseCallback, timeoutSecs, DeliveryMethod.ReliableUnordered);
        }
Exemple #5
0
        public void SendMessage(short opCode, ISerializablePacket packet, DeliveryMethod method)
        {
            var msg = MessageHelper.Create(opCode, packet.ToBytes());

            Peer.SendMessage(msg, method);
        }
Exemple #6
0
 public void SendMessage(short opCode, ISerializablePacket packet, DeliveryMethod method)
 {
     SendMessage(MessageHelper.Create(opCode, packet), method);
 }
Exemple #7
0
        public void SendMessage(short opCode, string data, ResponseCallback responseCallback)
        {
            var message = MessageHelper.Create(opCode, data);

            SendMessage(message, responseCallback);
        }
Exemple #8
0
 /// <summary>
 ///     Respond with data (message is created internally)
 /// </summary>
 /// <param name="data"></param>
 /// <param name="statusCode"></param>
 public void Respond(ISerializablePacket packet, ResponseStatus statusCode = ResponseStatus.Default)
 {
     Respond(MessageHelper.Create(OpCode, packet.ToBytes()), statusCode);
 }
Exemple #9
0
        public void SendMessage(short opCode, string data, DeliveryMethod method)
        {
            var msg = MessageHelper.Create(opCode, data);

            Peer.SendMessage(msg, method);
        }
Exemple #10
0
        public void SendMessage(short opCode, string data, ResponseCallback responseCallback, int timeoutSecs)
        {
            var msg = MessageHelper.Create(opCode, data);

            Peer.SendMessage(msg, responseCallback, timeoutSecs);
        }
Exemple #11
0
        public void SendMessage(short opCode, byte[] data, ResponseCallback responseCallback)
        {
            var msg = MessageHelper.Create(opCode, data);

            Peer.SendMessage(msg, responseCallback);
        }
Exemple #12
0
        public void SendMessage(short opCode, ResponseCallback responseCallback)
        {
            var msg = MessageHelper.Create(opCode);

            SendMessage(msg, responseCallback);
        }
Exemple #13
0
        public void SendMessage(short opCode, ISerializablePacket packet, ResponseCallback responseCallback, int timeoutSecs)
        {
            var msg = MessageHelper.Create(opCode, packet.ToBytes());

            Peer.SendMessage(msg, responseCallback, timeoutSecs);
        }
Exemple #14
0
        public void SendMessage(short opCode, byte[] data, ResponseCallback ackCallback)
        {
            var message = MessageHelper.Create(opCode, data);

            SendMessage(message, ackCallback);
        }
Exemple #15
0
        public void SendMessage(short opCode, int data, ResponseCallback responseCallback, int timeoutSecs)
        {
            var message = MessageHelper.Create(opCode, data);

            SendMessage(message, responseCallback, timeoutSecs);
        }
Exemple #16
0
 /// <summary>
 ///     Respond with data (message is created internally)
 /// </summary>
 /// <param name="data"></param>
 /// <param name="statusCode"></param>
 public void Respond(byte[] data, ResponseStatus statusCode = ResponseStatus.Default)
 {
     Respond(MessageHelper.Create(OpCode, data), statusCode);
 }
Exemple #17
0
 public void SendMessage(short opCode, ISerializablePacket packet)
 {
     SendMessage(MessageHelper.Create(opCode, packet), DeliveryMethod.ReliableUnordered);
 }
Exemple #18
0
 public void Respond(int response, ResponseStatus statusCode = ResponseStatus.Default)
 {
     Respond(MessageHelper.Create(OpCode, response), statusCode);
 }
Exemple #19
0
        public void SendMessage(short opCode)
        {
            var msg = MessageHelper.Create(opCode);

            SendMessage(msg);
        }