/external/quake/quake/src/WinQuake/ |
net_loop.cpp | 164 if ((*bufferLength + data->cursize + 4) > NET_MAXMESSAGE) 173 *buffer++ = data->cursize & 0xff; 174 *buffer++ = data->cursize >> 8; 180 Q_memcpy(buffer, data->data, data->cursize); 181 *bufferLength = IntAlign(*bufferLength + data->cursize + 4); 198 if ((*bufferLength + data->cursize + sizeof(byte) + sizeof(short)) > NET_MAXMESSAGE) 207 *buffer++ = data->cursize & 0xff; 208 *buffer++ = data->cursize >> 8; 214 Q_memcpy(buffer, data->data, data->cursize); 215 *bufferLength = IntAlign(*bufferLength + data->cursize + 4) [all...] |
cl_demo.cpp | 72 len = LittleLong (net_message.cursize); 79 fwrite (net_message.data, net_message.cursize, 1, cls.demofile); 117 fread (&net_message.cursize, 4, 1, cls.demofile); 125 net_message.cursize = LittleLong (net_message.cursize); 126 if (net_message.cursize > MAX_MSGLEN) 128 r = fread (net_message.data, net_message.cursize, 1, cls.demofile); 146 if (net_message.cursize == 1 && net_message.data[0] == svc_nop)
|
net_dgrm.cpp | 170 if (data->cursize == 0) 173 if (data->cursize > NET_MAXMESSAGE) 174 Sys_Error("Datagram_SendMessage: message too big %u\n", data->cursize); 180 Q_memcpy(sock->sendMessage, data->data, data->cursize); 181 sock->sendMessageLength = data->cursize; 183 if (data->cursize <= MAX_DATAGRAM) 185 dataLen = data->cursize; 296 if (data->cursize == 0) 299 if (data->cursize > MAX_DATAGRAM) 300 Sys_Error("Datagram_SendUnreliableMessage: message too big %u\n", data->cursize); [all...] |
cmd.cpp | 92 if (cmd_text.cursize + l >= cmd_text.maxsize) 117 templen = cmd_text.cursize; 150 while (cmd_text.cursize) 156 for (i=0 ; i< cmd_text.cursize ; i++) 174 if (i == cmd_text.cursize) 175 cmd_text.cursize = 0; 179 cmd_text.cursize -= i; 180 Q_memcpy (text, text+i, cmd_text.cursize);
|
net_vcr.cpp | 97 Sys_FileRead(vcrFile, &net_message.cursize, sizeof(int)); 98 Sys_FileRead(vcrFile, net_message.data, net_message.cursize);
|
sv_main.cpp | 84 if (sv.datagram.cursize > MAX_DATAGRAM-16) 135 if (sv.datagram.cursize > MAX_DATAGRAM-16) 465 if (msg->maxsize - msg->cursize < 16) 727 msg.cursize = 0; 738 if (msg.cursize + sv.datagram.cursize < msg.maxsize) 739 SZ_Write (&msg, sv.datagram.data, sv.datagram.cursize); 783 SZ_Write (&client->message, sv.reliable_datagram.data, sv.reliable_datagram.cursize); 805 msg.cursize = 0; 862 if (host_client->message.cursize || host_client->dropasap [all...] |
net_ser.cpp | 437 b = message->cursize >> 8;
442 b = message->cursize & 0xff;
449 for (n = 0; n < message->cursize; n++)
476 Q_memcpy(sock->sendMessage, message->data, message->cursize);
477 sock->sendMessageLength = message->cursize;
491 temp.cursize = sock->sendMessageLength;
529 b = message->cursize >> 8;
534 b = message->cursize & 0xff;
541 for (n = 0; n < message->cursize; n++)
625 b = message->cursize >> 8; [all...] |
common.cpp | 611 if (msg_readcount+1 > net_message.cursize) 627 if (msg_readcount+1 > net_message.cursize) 643 if (msg_readcount+2 > net_message.cursize) 661 if (msg_readcount+4 > net_message.cursize) 737 buf->cursize = 0; 746 buf->cursize = 0; 751 buf->cursize = 0; 758 if (buf->cursize + length > buf->maxsize) 771 data = buf->data + buf->cursize; 772 buf->cursize += length [all...] |
common.h | 45 int cursize; member in struct:sizebuf_s
|
cl_parse.cpp | 161 memcpy (olddata, net_message.data, net_message.cursize); 183 memcpy (net_message.data, olddata, net_message.cursize); 729 Con_Printf ("%i ",net_message.cursize);
|
host.cpp | 430 if (host_client->active && host_client->message.cursize) 452 buf.cursize = 0;
|
/external/quake/quake/src/QW/client/ |
net_chan.c | 121 send.cursize = 0; 131 NET_SendPacket (send.cursize, send.data, adr); 248 if (!chan->reliable_length && chan->message.cursize) 250 memcpy (chan->reliable_buf, chan->message_buf, chan->message.cursize); 251 chan->reliable_length = chan->message.cursize; 252 chan->message.cursize = 0; 260 send.cursize = 0; 283 if (send.maxsize - send.cursize >= length) 288 chan->outgoing_size[i] = send.cursize; 295 NET_SendPacket (send.cursize, send.data, chan->remote_address) [all...] |
cl_demo.c | 77 //Con_Printf("write: %ld bytes, %4.4f\n", msg->cursize, realtime); 118 //Con_Printf("write: %ld bytes, %4.4f\n", msg->cursize, realtime); 129 len = LittleLong (msg->cursize); 131 fwrite (msg->data, msg->cursize, 1, cls.demofile); 223 fread (&net_message.cursize, 4, 1, cls.demofile); 224 net_message.cursize = LittleLong (net_message.cursize); 225 //Con_Printf("read: %ld bytes\n", net_message.cursize); 226 if (net_message.cursize > MAX_MSGLEN) 228 r = fread (net_message.data, net_message.cursize, 1, cls.demofile) [all...] |
cmd.c | 92 if (cmd_text.cursize + l >= cmd_text.maxsize) 116 templen = cmd_text.cursize; 149 while (cmd_text.cursize) 155 for (i=0 ; i< cmd_text.cursize ; i++) 173 if (i == cmd_text.cursize) 174 cmd_text.cursize = 0; 178 cmd_text.cursize -= i; 179 Q_memcpy (text, text+i, cmd_text.cursize);
|
cl_input.c | 426 buf.cursize = 0; 432 checksumIndex = buf.cursize; 455 buf.data + checksumIndex + 1, buf.cursize - checksumIndex - 1, 478 Netchan_Transmit (&cls.netchan, buf.cursize, buf.data);
|
common.c | 671 if (msg_readcount+1 > net_message.cursize) 687 if (msg_readcount+1 > net_message.cursize) 703 if (msg_readcount+2 > net_message.cursize) 721 if (msg_readcount+4 > net_message.cursize) 852 buf->cursize = 0; 860 if (buf->cursize + length > buf->maxsize) 873 data = buf->data + buf->cursize; 874 buf->cursize += length; 890 if (!buf->cursize || buf->data[buf->cursize-1] [all...] |
common.h | 43 int cursize; member in struct:sizebuf_s
|
net_udp.c | 208 net_message.cursize = ret;
|
net_wins.c | 192 net_message.cursize = ret;
|
/external/quake/quake/src/QW/server/ |
sv_nchan.c | 28 cl->netchan.message.cursize > 40 if (cl->backbuf.cursize > cl->backbuf.maxsize - maxsize - 1) { 43 cl->backbuf.cursize = 0; // don't overflow without allowoverflow set 67 cl->backbuf_size[cl->num_backbuf - 1] = cl->backbuf.cursize;
|
sv_send.c | 324 ClientReliableCheckBlock(client, sv.multicast.cursize); 325 ClientReliableWrite_SZ(client, sv.multicast.data, sv.multicast.cursize); 327 SZ_Write (&client->datagram, sv.multicast.data, sv.multicast.cursize); 576 msg.cursize = 0; 593 SZ_Write (&msg, client->datagram.data, client->datagram.cursize); 607 Netchan_Transmit (&client->netchan, msg.cursize, buf); 675 ClientReliableCheckBlock(client, sv.reliable_datagram.cursize); 676 ClientReliableWrite_SZ(client, sv.reliable_datagram.data, sv.reliable_datagram.cursize); 682 , sv.datagram.cursize); 723 if (c->netchan.message.cursize + c->backbuf_size[0] [all...] |
sv_init.c | 60 if (sv.signon.cursize < sv.signon.maxsize - 512) 66 sv.signon_buffer_size[sv.num_signon_buffers-1] = sv.signon.cursize; 69 sv.signon.cursize = 0; 406 sv.signon_buffer_size[sv.num_signon_buffers-1] = sv.signon.cursize;
|
sv_main.c | 168 Netchan_Transmit (&cl->netchan, net_message.cursize 385 if (sz->cursize > LOG_HIGHWATER 386 || (realtime - svs.logtime > LOG_FLUSH && sz->cursize) ) 392 sz->cursize = 0; 1375 svs.log[0].cursize = 0; 1379 svs.log[1].cursize = 0; [all...] |
sv_user.c | 79 Con_Printf("WARNING %s: [SV_New] Back buffered (%d0, clearing", host_client->name, host_client->netchan.message.cursize); 148 Con_Printf("WARNING %s: [SV_Soundlist] Back buffered (%d0, clearing", host_client->name, host_client->netchan.message.cursize); 156 *s && host_client->netchan.message.cursize < (MAX_MSGLEN/2); 198 Con_Printf("WARNING %s: [SV_Modellist] Back buffered (%d0, clearing", host_client->name, host_client->netchan.message.cursize); 206 *s && host_client->netchan.message.cursize < (MAX_MSGLEN/2); 267 Con_Printf("WARNING %s: [SV_PreSpawn] Back buffered (%d0, clearing", host_client->name, host_client->netchan.message.cursize); [all...] |
/external/mksh/src/ |
histrap.c | 538 int cursize = histptr - history; local 541 if (n < cursize) { 543 cursize = n - 1; 549 histptr = history + cursize; [all...] |