zsfhaergta
Programmer
Hi,
I am developing the client end of a program. I receive data from at most two channels at a time. While I am currently recvfrom() and processing the data from one channel, I call recvfrom() and queue the data from the other channel. At times this runs correctly. Other times, it seems that recvfrom() doesn't see any data coming from the network. I have tried the block and non-blocking methods, but neither of them return with data. Besides waiting for data to appear on the network, is there any other reason why the recvfrom() function would block or return nothing(for nonblocking)?
Thanks,
Allen
I am developing the client end of a program. I receive data from at most two channels at a time. While I am currently recvfrom() and processing the data from one channel, I call recvfrom() and queue the data from the other channel. At times this runs correctly. Other times, it seems that recvfrom() doesn't see any data coming from the network. I have tried the block and non-blocking methods, but neither of them return with data. Besides waiting for data to appear on the network, is there any other reason why the recvfrom() function would block or return nothing(for nonblocking)?
Thanks,
Allen