My code is: http://ideone.com/nVXIQ.
recv()
functions always idling (it works very slow); it takes several seconds to get the result, and recv()
should handle quickly such small amount of data.
My code is: http://ideone.com/nVXIQ.
recv()
functions always idling (it works very slow); it takes several seconds to get the result, and recv()
should handle quickly such small amount of data.
Is your question about recv's blocking behavior? If so, then investigate using non-blocking IO with something like a select/poll loop.