示例#1
0
 public virtual void WritePacket(ref RawPacket data)
 {
     data.Write(Id);
     if (IsReliable)
         data.Write(Seq);
 }
示例#2
0
 public bool SendToServer(RawPacket packet)
 {
     return(SendRawPacketInternal(packet, _serverSendBuffer,
                                  _serverSocket, _serverEncryption, true));
 }
示例#3
0
 public virtual void ReadPacket(ref RawPacket data)
 {
     if (IsReliable)
         Seq = data.ReadInt64();
 }
示例#4
0
 public bool SendToClient(RawPacket packet)
 {
     return(SendRawPacketInternal(packet, _clientSendBuffer,
                                  _clientSocket, _clientEncryption, false));
 }