in a chat program , client is not working perfectly...
it sends and receives the first message . but after receiving the first message, other messages are not receiving from the server...
when a new instance of the client is created (i.e another user logged on) the first message from that user is sent to all clients.. again further messages are not sent to all clients... please help...
sir, i cant understand that solution.. please give me in brief.. thank you.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35224
7
posted
0
It's not a solution as such; the article describes the problem you're running into (or at least one of them - there may be more) and provides some strategies for avoiding it. Did you understand what it's talking about?
i think its about using println method with socket... but so many chat programs are written by using this method.. and they are working good too ... but what about this small program...? ?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35224
7
posted
0
What do you mean you "think" it's about something? Didn't you read it? The article makes it pretty clear under which circumstances that can be a problem; are you saying those circumstances don't apply to your situation?