Home
last modified time | relevance | path

Searched refs:cursize (Results 1 – 25 of 32) sorted by relevance

12

/external/quake/quake/src/WinQuake/
Dnet_dgrm.cpp170 if (data->cursize == 0) in Datagram_SendMessage()
173 if (data->cursize > NET_MAXMESSAGE) in Datagram_SendMessage()
174 Sys_Error("Datagram_SendMessage: message too big %u\n", data->cursize); in Datagram_SendMessage()
180 Q_memcpy(sock->sendMessage, data->data, data->cursize); in Datagram_SendMessage()
181 sock->sendMessageLength = data->cursize; in Datagram_SendMessage()
183 if (data->cursize <= MAX_DATAGRAM) in Datagram_SendMessage()
185 dataLen = data->cursize; in Datagram_SendMessage()
296 if (data->cursize == 0) in Datagram_SendUnreliableMessage()
299 if (data->cursize > MAX_DATAGRAM) in Datagram_SendUnreliableMessage()
300 Sys_Error("Datagram_SendUnreliableMessage: message too big %u\n", data->cursize); in Datagram_SendUnreliableMessage()
[all …]
Dnet_loop.cpp164 if ((*bufferLength + data->cursize + 4) > NET_MAXMESSAGE) in Loop_SendMessage()
173 *buffer++ = data->cursize & 0xff; in Loop_SendMessage()
174 *buffer++ = data->cursize >> 8; in Loop_SendMessage()
180 Q_memcpy(buffer, data->data, data->cursize); in Loop_SendMessage()
181 *bufferLength = IntAlign(*bufferLength + data->cursize + 4); in Loop_SendMessage()
198 if ((*bufferLength + data->cursize + sizeof(byte) + sizeof(short)) > NET_MAXMESSAGE) in Loop_SendUnreliableMessage()
207 *buffer++ = data->cursize & 0xff; in Loop_SendUnreliableMessage()
208 *buffer++ = data->cursize >> 8; in Loop_SendUnreliableMessage()
214 Q_memcpy(buffer, data->data, data->cursize); in Loop_SendUnreliableMessage()
215 *bufferLength = IntAlign(*bufferLength + data->cursize + 4); in Loop_SendUnreliableMessage()
Dcl_demo.cpp72 len = LittleLong (net_message.cursize); in CL_WriteDemoMessage()
79 fwrite (net_message.data, net_message.cursize, 1, cls.demofile); in CL_WriteDemoMessage()
117 fread (&net_message.cursize, 4, 1, cls.demofile); in CL_GetMessage()
125 net_message.cursize = LittleLong (net_message.cursize); in CL_GetMessage()
126 if (net_message.cursize > MAX_MSGLEN) in CL_GetMessage()
128 r = fread (net_message.data, net_message.cursize, 1, cls.demofile); in CL_GetMessage()
146 if (net_message.cursize == 1 && net_message.data[0] == svc_nop) in CL_GetMessage()
Dcmd.cpp92 if (cmd_text.cursize + l >= cmd_text.maxsize) in Cbuf_AddText()
117 templen = cmd_text.cursize; in Cbuf_InsertText()
150 while (cmd_text.cursize) in Cbuf_Execute()
156 for (i=0 ; i< cmd_text.cursize ; i++) in Cbuf_Execute()
174 if (i == cmd_text.cursize) in Cbuf_Execute()
175 cmd_text.cursize = 0; in Cbuf_Execute()
179 cmd_text.cursize -= i; in Cbuf_Execute()
180 Q_memcpy (text, text+i, cmd_text.cursize); in Cbuf_Execute()
Dnet_ser.cpp437 b = message->cursize >> 8; in Serial_SendMessage()
442 b = message->cursize & 0xff; in Serial_SendMessage()
449 for (n = 0; n < message->cursize; n++) in Serial_SendMessage()
476 Q_memcpy(sock->sendMessage, message->data, message->cursize); in Serial_SendMessage()
477 sock->sendMessageLength = message->cursize; in Serial_SendMessage()
491 temp.cursize = sock->sendMessageLength; in ReSendMessage()
529 b = message->cursize >> 8; in Serial_SendUnreliableMessage()
534 b = message->cursize & 0xff; in Serial_SendUnreliableMessage()
541 for (n = 0; n < message->cursize; n++) in Serial_SendUnreliableMessage()
625 b = message->cursize >> 8; in Serial_SendControlMessage()
[all …]
Dsv_main.cpp84 if (sv.datagram.cursize > MAX_DATAGRAM-16) in SV_StartParticle()
135 if (sv.datagram.cursize > MAX_DATAGRAM-16) in SV_StartSound()
465 if (msg->maxsize - msg->cursize < 16) in SV_WriteEntitiesToClient()
727 msg.cursize = 0; in SV_SendClientDatagram()
738 if (msg.cursize + sv.datagram.cursize < msg.maxsize) in SV_SendClientDatagram()
739 SZ_Write (&msg, sv.datagram.data, sv.datagram.cursize); in SV_SendClientDatagram()
783 SZ_Write (&client->message, sv.reliable_datagram.data, sv.reliable_datagram.cursize); in SV_UpdateToReliableMessages()
805 msg.cursize = 0; in SV_SendNop()
862 if (host_client->message.cursize || host_client->dropasap) in SV_SendClientMessages()
991 msg.cursize = 0; in SV_SendReconnect()
[all …]
Dcommon.cpp611 if (msg_readcount+1 > net_message.cursize) in MSG_ReadChar()
627 if (msg_readcount+1 > net_message.cursize) in MSG_ReadByte()
643 if (msg_readcount+2 > net_message.cursize) in MSG_ReadShort()
661 if (msg_readcount+4 > net_message.cursize) in MSG_ReadLong()
737 buf->cursize = 0; in SZ_Alloc()
746 buf->cursize = 0; in SZ_Free()
751 buf->cursize = 0; in SZ_Clear()
758 if (buf->cursize + length > buf->maxsize) in SZ_GetSpace()
771 data = buf->data + buf->cursize; in SZ_GetSpace()
772 buf->cursize += length; in SZ_GetSpace()
[all …]
Dnet_vcr.cpp97 Sys_FileRead(vcrFile, &net_message.cursize, sizeof(int)); in VCR_GetMessage()
98 Sys_FileRead(vcrFile, net_message.data, net_message.cursize); in VCR_GetMessage()
Dcl_parse.cpp161 memcpy (olddata, net_message.data, net_message.cursize); in CL_KeepaliveMessage()
183 memcpy (net_message.data, olddata, net_message.cursize); in CL_KeepaliveMessage()
729 Con_Printf ("%i ",net_message.cursize); in CL_ParseServerMessage()
Dcommon.h45 int cursize; member
Dhost.cpp429 if (host_client->active && host_client->message.cursize) in Host_ShutdownServer()
451 buf.cursize = 0; in Host_ShutdownServer()
Dnet_main.cpp585 vcrGetMessage.len = net_message.cursize; in NET_GetMessage()
587 Sys_FileWrite (vcrFile, net_message.data, net_message.cursize); in NET_GetMessage()
/external/quake/quake/src/QW/client/
Dnet_chan.c121 send.cursize = 0; in Netchan_OutOfBand()
131 NET_SendPacket (send.cursize, send.data, adr); in Netchan_OutOfBand()
248 if (!chan->reliable_length && chan->message.cursize) in Netchan_Transmit()
250 memcpy (chan->reliable_buf, chan->message_buf, chan->message.cursize); in Netchan_Transmit()
251 chan->reliable_length = chan->message.cursize; in Netchan_Transmit()
252 chan->message.cursize = 0; in Netchan_Transmit()
260 send.cursize = 0; in Netchan_Transmit()
283 if (send.maxsize - send.cursize >= length) in Netchan_Transmit()
288 chan->outgoing_size[i] = send.cursize; in Netchan_Transmit()
295 NET_SendPacket (send.cursize, send.data, chan->remote_address); in Netchan_Transmit()
[all …]
Dcl_demo.c129 len = LittleLong (msg->cursize); in CL_WriteDemoMessage()
131 fwrite (msg->data, msg->cursize, 1, cls.demofile); in CL_WriteDemoMessage()
223 fread (&net_message.cursize, 4, 1, cls.demofile); in CL_GetDemoMessage()
224 net_message.cursize = LittleLong (net_message.cursize); in CL_GetDemoMessage()
226 if (net_message.cursize > MAX_MSGLEN) in CL_GetDemoMessage()
228 r = fread (net_message.data, net_message.cursize, 1, cls.demofile); in CL_GetDemoMessage()
328 len = LittleLong (msg->cursize + 8); in CL_WriteRecordDemoMessage()
335 fwrite (msg->data, msg->cursize, 1, cls.demofile); in CL_WriteRecordDemoMessage()
476 if (buf.cursize > MAX_MSGLEN/2) { in CL_Record_f()
487 if (buf.cursize) { in CL_Record_f()
[all …]
Dcmd.c92 if (cmd_text.cursize + l >= cmd_text.maxsize) in Cbuf_AddText()
116 templen = cmd_text.cursize; in Cbuf_InsertText()
149 while (cmd_text.cursize) in Cbuf_Execute()
155 for (i=0 ; i< cmd_text.cursize ; i++) in Cbuf_Execute()
173 if (i == cmd_text.cursize) in Cbuf_Execute()
174 cmd_text.cursize = 0; in Cbuf_Execute()
178 cmd_text.cursize -= i; in Cbuf_Execute()
179 Q_memcpy (text, text+i, cmd_text.cursize); in Cbuf_Execute()
Dcommon.c671 if (msg_readcount+1 > net_message.cursize) in MSG_ReadChar()
687 if (msg_readcount+1 > net_message.cursize) in MSG_ReadByte()
703 if (msg_readcount+2 > net_message.cursize) in MSG_ReadShort()
721 if (msg_readcount+4 > net_message.cursize) in MSG_ReadLong()
852 buf->cursize = 0; in SZ_Clear()
860 if (buf->cursize + length > buf->maxsize) in SZ_GetSpace()
873 data = buf->data + buf->cursize; in SZ_GetSpace()
874 buf->cursize += length; in SZ_GetSpace()
890 if (!buf->cursize || buf->data[buf->cursize-1]) in SZ_Print()
Dcl_input.c426 buf.cursize = 0; in CL_SendCmd()
432 checksumIndex = buf.cursize; in CL_SendCmd()
455 buf.data + checksumIndex + 1, buf.cursize - checksumIndex - 1, in CL_SendCmd()
478 Netchan_Transmit (&cls.netchan, buf.cursize, buf.data); in CL_SendCmd()
Dnet_udp.c208 net_message.cursize = ret; in NET_GetPacket()
Dcommon.h43 int cursize; member
/external/quake/quake/src/QW/server/
Dsv_send.c324 ClientReliableCheckBlock(client, sv.multicast.cursize); in SV_Multicast()
325 ClientReliableWrite_SZ(client, sv.multicast.data, sv.multicast.cursize); in SV_Multicast()
327 SZ_Write (&client->datagram, sv.multicast.data, sv.multicast.cursize); in SV_Multicast()
576 msg.cursize = 0; in SV_SendClientDatagram()
593 SZ_Write (&msg, client->datagram.data, client->datagram.cursize); in SV_SendClientDatagram()
607 Netchan_Transmit (&client->netchan, msg.cursize, buf); in SV_SendClientDatagram()
675 ClientReliableCheckBlock(client, sv.reliable_datagram.cursize); in SV_UpdateToReliableMessages()
676 ClientReliableWrite_SZ(client, sv.reliable_datagram.data, sv.reliable_datagram.cursize); in SV_UpdateToReliableMessages()
682 , sv.datagram.cursize); in SV_UpdateToReliableMessages()
723 if (c->netchan.message.cursize + c->backbuf_size[0] < in SV_SendClientMessages()
[all …]
Dsv_nchan.c28 cl->netchan.message.cursize > in ClientReliableCheckBlock()
40 if (cl->backbuf.cursize > cl->backbuf.maxsize - maxsize - 1) { in ClientReliableCheckBlock()
43 cl->backbuf.cursize = 0; // don't overflow without allowoverflow set in ClientReliableCheckBlock()
67 cl->backbuf_size[cl->num_backbuf - 1] = cl->backbuf.cursize; in ClientReliable_FinishWrite()
Dsv_init.c60 if (sv.signon.cursize < sv.signon.maxsize - 512) in SV_FlushSignon()
66 sv.signon_buffer_size[sv.num_signon_buffers-1] = sv.signon.cursize; in SV_FlushSignon()
69 sv.signon.cursize = 0; in SV_FlushSignon()
406 sv.signon_buffer_size[sv.num_signon_buffers-1] = sv.signon.cursize; in SV_SpawnServer()
Dsv_main.c168 Netchan_Transmit (&cl->netchan, net_message.cursize in SV_FinalMessage()
385 if (sz->cursize > LOG_HIGHWATER in SV_CheckLog()
386 || (realtime - svs.logtime > LOG_FLUSH && sz->cursize) ) in SV_CheckLog()
392 sz->cursize = 0; in SV_CheckLog()
1375 svs.log[0].cursize = 0; in SV_InitLocal()
1379 svs.log[1].cursize = 0; in SV_InitLocal()
Dsv_user.c79 … [SV_New] Back buffered (%d0, clearing", host_client->name, host_client->netchan.message.cursize); in SV_New_f()
148 …oundlist] Back buffered (%d0, clearing", host_client->name, host_client->netchan.message.cursize); in SV_Soundlist_f()
156 *s && host_client->netchan.message.cursize < (MAX_MSGLEN/2); in SV_Soundlist_f()
198 …odellist] Back buffered (%d0, clearing", host_client->name, host_client->netchan.message.cursize); in SV_Modellist_f()
206 *s && host_client->netchan.message.cursize < (MAX_MSGLEN/2); in SV_Modellist_f()
267 …PreSpawn] Back buffered (%d0, clearing", host_client->name, host_client->netchan.message.cursize); in SV_PreSpawn_f()
/external/dropbear/
Dscp.c940 static size_t cursize; local
944 if (need > cursize) {
948 cursize = need;

12