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 2 of 2

Thread: Send some arrays via network

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Send some arrays via network

    Hi,

    I want to send a data of a geometry via network, to describe a geometry, I need to some float arrays and int arrays. So I need to send those array by network. Now the problem I faced is that the array size could be large, so it may exceed the buffer size. So my question is how to seperate arrays into chunks and send multiple times to transfer the arrays. But when receiving, how do I know if one array is transfered? I don't want to mix up one array with another.

    Thanks!


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,264
    Thanks
    176
    Thanked 821 Times in 764 Posts
    Blog Entries
    5

    Default Re: Send some arrays via network

    Quote Originally Posted by amidofu View Post
    Hi,

    I want to send a data of a geometry via network, to describe a geometry, I need to some float arrays and int arrays. So I need to send those array by network. Now the problem I faced is that the array size could be large, so it may exceed the buffer size. So my question is how to seperate arrays into chunks and send multiple times to transfer the arrays. But when receiving, how do I know if one array is transfered? I don't want to mix up one array with another.

    Thanks!
    Please define what you mean by 'buffer size', as I don't really see what would stop your program from transferring the data in its entirety.

Similar Threads

  1. Platform Issue XP vs 7 ?? Send File Accross Network
    By dumb_terminal in forum Java Networking
    Replies: 0
    Last Post: April 12th, 2011, 02:44 PM
  2. Searching network for server
    By Jonathan_C in forum Java Theory & Questions
    Replies: 2
    Last Post: November 14th, 2010, 10:23 AM
  3. Network problem
    By subash in forum Java Networking
    Replies: 0
    Last Post: March 9th, 2010, 06:07 AM
  4. network scanner
    By vivek494818 in forum Java Networking
    Replies: 0
    Last Post: August 17th, 2009, 11:07 PM
  5. Problem on sending vectors from Java server to C# client
    By MS_Dark in forum Java Networking
    Replies: 2
    Last Post: July 7th, 2009, 02:35 PM