Thanks for reply.
Yest its a client but i want it to be in constant communication wit a server so that is why i want it to be able to recieve data from server.
Can you describe how/why your client is waiting? Normally clients send a request and read the response.
Oh is it?? Well yes that would actually be even better for my code. Sorry I'm quite new in all this and the way I was thinking was that server as well as client must keep listening for incoming data.
So what you saying is that client must send a request to server in order to get data??
Does the client call a blocking method to wait for input?
Is the waiting code in its own thread?
Right now it does not wait because i wasn't really sure how to do it
So OK now, i think its sorted. I'm gonna make client sending a requests to server.