Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Partial message problem

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    19
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Partial message problem

    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

    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
    Last edited by perl0101; May 25th, 2011 at 02:13 PM.


  2. #2
    Junior Member
    Join Date
    May 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Partial message problem

    first!!!!!!

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Partial message problem

    Quote Originally Posted by semicolon View Post
    first!!!!!!
    What does this even mean...please do not post useless posts like this. In the future, posts such as this will be deleted by the JPF moderating team and may result in other actions

Similar Threads

  1. Hello message
    By ceejaysoft in forum Member Introductions
    Replies: 1
    Last Post: March 17th, 2011, 04:18 AM
  2. [SOLVED] Help making an error message.
    By Lost_Secret in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 1st, 2011, 04:48 PM
  3. Partial messages problem with Java non-blocking socket communication
    By perl0101 in forum What's Wrong With My Code?
    Replies: 14
    Last Post: July 28th, 2010, 03:38 PM
  4. Tomcat startup message
    By Lotfus in forum Java Servlet
    Replies: 3
    Last Post: May 10th, 2010, 08:47 AM
  5. help with a error message
    By JavaNoob82 in forum What's Wrong With My Code?
    Replies: 6
    Last Post: January 23rd, 2010, 02:56 PM