Results 1 to 2 of 2
  1. #1
    perl010101 is offline Member
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Question 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


    Java Code:
    n = socket.read(rbuf);	
    if(n==0) || (n==-1) 
       break;
    The exception of partial message still exists. Is any good way to solve this problem. Thanks

    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

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

Similar Threads

  1. Partial message problem using nio socket
    By perl010101 in forum New To Java
    Replies: 0
    Last Post: 05-25-2011, 09:26 PM
  2. partial XML validation against xsd
    By presto in forum XML
    Replies: 2
    Last Post: 11-21-2009, 05:15 PM
  3. Display partial file contents in JTextArea
    By tmoehlman in forum New To Java
    Replies: 0
    Last Post: 11-02-2009, 11:03 PM
  4. JSF message component problem
    By Jothi in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 06-04-2008, 02:39 PM
  5. HELP: Trouble with partial filled arrays
    By daigre7 in forum New To Java
    Replies: 1
    Last Post: 04-07-2008, 02:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •