maxy has asked for the wisdom of the Perl Monks concerning the following question:

in a udp server/client enviroment, does it buffer the data which is exchanged before passing it to upper applications, i mean TCP sockets does buffer the incoming data, is it the same case with UDP? if yes, how do we check if the buffer contains data, so that we could read from it.tanx

Replies are listed 'Best First'.
Re: Buffering with UDP
by Anonymous Monk on Dec 05, 2008 at 02:31 UTC
      tanx for reply, but it seems i couldn't explain the situation,i know how udp works, the reason i compared it with tcp is that i want to know, when data comes to the udp server/client does it buffer data or it just returns it? cause in TCP case data is first buffered, either in sending side or receiving side, but in UDP its not buffered in sending side, will it be buffered in receiving side?
        You have asked a variation of the same question five times in under two weeks. If you have a specific problem with your current code, please post it with a clear description of your intent vs. the result.
        ,i know how udp works,
        Then why don't you know the answer?
Re: Buffering with UDP
by BrowserUk (Patriarch) on Dec 05, 2008 at 03:27 UTC
Re: Buffering with UDP
by zwon (Abbot) on Dec 05, 2008 at 19:11 UTC

    You question isn't very clear. If you want to check if you can read some data from the socket you can use select or IO::Select.