Exemplo n.º 1
0
 protected void ReplacePacket(ServerPacketSafe newPacket)
 {
     unsafe
     {
         fixed(byte *pNewData = newPacket.Data)
         {
             Server.PacketEngine.ReplaceServerPacketData(m_ppData, m_pLength, pNewData, newPacket.Dynamic ? (uint)((newPacket.Data[1] << 8) + newPacket.Data[2]) : (uint)newPacket.Length);
         }
     }
 }
Exemplo n.º 2
0
 public int SendPacketToSocket(ServerPacketSafe packet)
 {
     return(Socket.SendPacket(packet.Data, (uint)packet.Length));
 }