Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java TCPMultithreadserver

Status
Not open for further replies.

messi121

Programmer
Oct 17, 2010
7
GB
I have a TCPMultiThreadServer with 2 clients the code is basically working fine. However i want the chat to end once the messages received from the client reaches 8. However as there is 2 clients i need to distinguish which client is which and when client 1 reaches 8 messages the end chat and same when client 2 reaches 8.

Can someone please help me with this?

 
Difficult to say without knowing how is it done. Can you modify the clients or just the server?

Cheers,
Dian
 
Can only edit the server would really appreciate your help with the please mate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top