Thread: Regarding delay in the connection

  1. #1
    Registered User
    Join Date
    Aug 2008

    Regarding delay in the connection

    hi to all, i have design an client-server program.

    client is sending continous data to the server,now when i send data continously in a while
    loop then it arrives correctly at the other end, but when i introduce an delay between 2 send calls,say a delay of 1 sec, then the data donot comes by 1 sec. delay on the server
    instead after some-time,the data comes on the server as a bunch of data.

    i am transferring 400 bytes of data.

    can anybody please tell me ,is there any problem regarding introducing delay b/w data transfer.
    Last edited by Salem; 08-19-2008 at 10:59 AM. Reason: Snipped email

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Please edit your post to remove your e-mail address. The ONLY possibly effect of posting your e-mail address would be that you receive a bit more spam from people who search the web for spam. If someone wants to discuss your project in private, then they can use the PM facility, and generally, the accepted method to reply to posts on the forum is by addressing it as a reply.

    Edit: It may also help if you posted some code. For example, what does your send loop look like, and what does your receive loop look like?

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    FOSS Enthusiast
    Join Date
    Jun 2008
    how did you code the delay? are you sure it delays by one second?
    if it does, how do you establish the connections? is there something else writing to the sockets?

    like matsp mentioned, I'd be helpful if you posted some code. otherwise, all we can do is guess

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. multiple forks in one client connection (ftpclient)
    By Dynamo in forum Networking/Device Communication
    Replies: 5
    Last Post: 01-16-2011, 12:41 PM
  2. temperature sensors
    By danko in forum C Programming
    Replies: 22
    Last Post: 07-10-2007, 07:26 PM
  3. Networking (queuing delay, avg packet loss)
    By spoon_ in forum A Brief History of
    Replies: 0
    Last Post: 09-05-2005, 11:23 AM
  4. passing a connection to another process.
    By Kinasz in forum Networking/Device Communication
    Replies: 3
    Last Post: 10-09-2004, 05:34 PM
  5. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM