* Efficient UDP Programming
@ 2004-08-21 3:08 Chuck Winters
2004-08-23 13:10 ` Luciano Moreira - igLnx
0 siblings, 1 reply; 2+ messages in thread
From: Chuck Winters @ 2004-08-21 3:08 UTC (permalink / raw)
To: linux-c-programming
Is there anyway of reading some data from a UDP socket without removing
it from the received queue? What I need to do is read in the header
from a packet to determine how large of a memory chunk I need to
allocate.
Thanks,
Chuck
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Efficient UDP Programming
2004-08-21 3:08 Efficient UDP Programming Chuck Winters
@ 2004-08-23 13:10 ` Luciano Moreira - igLnx
0 siblings, 0 replies; 2+ messages in thread
From: Luciano Moreira - igLnx @ 2004-08-23 13:10 UTC (permalink / raw)
To: Chuck Winters; +Cc: linux-c-programming
I suggest you to have a fixed size for your header, then you can read
the header that ll say you about the rest of data following the header.
Luciano
Chuck Winters escreveu:
>Is there anyway of reading some data from a UDP socket without removing
>it from the received queue? What I need to do is read in the header
>from a packet to determine how large of a memory chunk I need to
>allocate.
>
>Thanks,
>Chuck
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-23 13:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-21 3:08 Efficient UDP Programming Chuck Winters
2004-08-23 13:10 ` Luciano Moreira - igLnx
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).