> I try to program a chat, and I can send the message to the server.
> But, unfortunately, my server can't send back the message it received.
[quoted text clipped - 16 lines]
>
> Thank you for helping.
> > I try to program a chat, and I can send the message to the server.
> > But, unfortunately, my server can't send back the message it received.
[quoted text clipped - 17 lines]
> > Thank you for helping.
> Try sending the flush message to the output stream
I tried to give the flush() method, but it still doen't work. In fact,
I think the problem is my server program doesn't know where to send
the messages in its buffer. So, I have to tell him that by a method
such as a kind of:
send(new Socket(ip_to_send, port_of_ip_client));
As I want there are more than one client, I should create a public
method, called in the thread of my reading/sending messages.