components/prboom/d_client.c
/* cph - data passed to this must be in the Doom (little-) endian */
data passed to this must be in the Doom (little-) endian
data passed to this must be in the Doom ( little - ) endian
void D_NetSendMisc(netmisctype_t type, size_t len, void* data)
{
  if (server) {
    size_t size = sizeof(packet_header_t) + 3*sizeof(int) + len;
    packet_header_t *packet = Z_Malloc(size, PU_STATIC, NULL);
    int *p = (void*)(packet+1);
    packet_set(packet, PKT_EXTRA, gametic);
    *p++ = LONG(type); *p++ = LONG(consoleplayer); *p++ = LONG(len);
    memcpy(p, data, len);
    I_SendPacket(packet, size);
    Z_Free(packet);
  }
}
void D_NetSendMisc ( netmisctype_t type , size_t len , void * data ) { if ( server ) { size_t size = sizeof ( packet_header_t ) + 3 * sizeof ( int ) + len ; packet_header_t * packet = Z_Malloc ( size , PU_STATIC , NULL ) ; int * p = ( void * ) ( packet + 1 ) ; packet_set ( packet , PKT_EXTRA , gametic ) ; * p ++ = LONG ( type ) ; * p ++ = LONG ( consoleplayer ) ; * p ++ = LONG ( len ) ; memcpy ( p , data , len ) ; I_SendPacket ( packet , size ) ; Z_Free ( packet ) ; } }
cph - data passed to this must be in the Doom (little-) endian
cph - data passed to this must be in the Doom ( little - ) endian