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?