Results 1 to 1 of 1
- 05-25-2011, 09:26 PM #1
Member
- Join Date
- May 2011
- Posts
- 2
- Rep Power
- 0
Partial message problem using nio socket
Hi everyone,
My sending messages may be larger than the default socket buffer size. So there may be several read operations in order to receive a complete message. When the end condition is
The exception of partial message still exists. Is any good way to solve this problem. ThanksJava Code:n = socket.read(rbuf); if(n==0) || (n==-1) break;
I use multiple processes running on one machine. Each process uses a nio socket. Is this a possible factor to cause the partial messages?
I need your help
Similar Threads
-
Simple Socket Problem
By barusk in forum NetworkingReplies: 0Last Post: 12-14-2009, 04:43 PM -
partial XML validation against xsd
By presto in forum XMLReplies: 2Last Post: 11-21-2009, 05:15 PM -
Display partial file contents in JTextArea
By tmoehlman in forum New To JavaReplies: 0Last Post: 11-02-2009, 11:03 PM -
JSF message component problem
By Jothi in forum JavaServer Faces (JSF)Replies: 0Last Post: 06-04-2008, 02:39 PM -
HELP: Trouble with partial filled arrays
By daigre7 in forum New To JavaReplies: 1Last Post: 04-07-2008, 02:05 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks