Results 21 to 21 of 21
- 06-14-2012, 04:08 AM #21Member
- Join Date
- Jun 2012
- Rep Power
Re: Problem with Multi-Threaded Socket IO
I certainly hope this solves your problem but it's essentially Already what I do. A client sends a connection request to the dispatcher which is constantly listening. The dispatcher creates a new thread for the server that will serve the client. The client and server exchange messages and then exchange files if there are any to exchange. Once this is done the connection is closed. Any new client requests are serviced through a new socket. The problem I have is definitely NOT about the connection being closed since information is still passed over the socket, it just happens that the client seems to prematurely or not completely read the file bytes SOMETIMES.
Anyway, I do hope this really you have solved your problem.
- By Rickyp in forum Advanced JavaReplies: 1Last Post: 07-07-2011, 07:28 AM
- By redasu in forum Threads and SynchronizationReplies: 0Last Post: 11-17-2010, 10:00 AM
- By snehalkgandhi in forum Threads and SynchronizationReplies: 1Last Post: 12-19-2008, 06:10 AM
- By evanp in forum Jobs OfferedReplies: 0Last Post: 07-22-2008, 05:39 PM
- By Java Tip in forum java.netReplies: 0Last Post: 04-07-2008, 09:14 PM