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: Sending data too fast

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Sending data too fast

    I have a Java game that connects to a C/C++ server.

    When I send the packets all at once, they don't get through.

    But when I send them with a 100 ms delay in between, they get through.

    The result is really slow (~1000 bytes/30 seconds).

    How can I fix this?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    20,940
    Thanks
    51
    Thanked 2,267 Times in 2,239 Posts

    Default Re: Sending data too fast

    Can you make a small program that compiles, executes and shows the problem?

    they don't get through.
    Can you explain what happens? For example:
    All the packets are lost.
    everything after packet 22 is lost
    Only part of some packets get there
    There is junk in some of the packets
    Last edited by Norm; August 10th, 2012 at 04:30 PM.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Sending data from a computer to a server autonomously(spelling?)
    By Zula in forum File I/O & Other I/O Streams
    Replies: 4
    Last Post: February 7th, 2012, 05:57 AM
  2. [Request]Explanation about sending and recieving data
    By 123099 in forum Java Networking
    Replies: 6
    Last Post: October 6th, 2011, 12:41 PM
  3. Sending Data Between PC to Mobile
    By ultrabeat in forum Java Theory & Questions
    Replies: 0
    Last Post: July 23rd, 2011, 09:06 AM
  4. HELP with sending data within text file to client with printwriter
    By dannyyy in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 24th, 2011, 02:42 PM
  5. Sending large Strings ?! only sending a line
    By camel in forum Java Networking
    Replies: 2
    Last Post: April 19th, 2011, 12:41 PM