methods to know data on socket?
client wants to recv(read) data, when server sends,
I cant use while (1) (recv()!= -1) as client also handles task of sending data.continuously,
i.e sending is constant, but when data is available, want to read, and take action,
awaiting for your valuable suggestion.
thanks
|