Re: How to I force a Data to be send out at once in socket send

From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 12/27/03


Date: Sat, 27 Dec 2003 22:18:38 GMT

In article <3FEDB78E.7C4FC4F8@axelero.hu>,
 Lorinczy Zsigmond / Domonyik Mariann <lzsiga@axelero.hu> wrote:

> postbeerliu wrote:
> >
> > Hi,Every One,
> >
> > sorry to disturbing. I have truble in my application which should found
> > network failure as soon as possible. I know,normally tcp send will buffered
> > data in system send buffer and send out later. and ,the ack won't send back
> > immedealy for some function to improve tcp performace such as Neagle .How
> > can i force the send fuction to send the data to the network without
> > buffering in local buffer?
> >
> > What i want to do is when i send out a frame of data via socket,i can get
> > response like n equal to the length of the frame when remote peer received
> > the frame of the data ,or -1 when timeout without responce.
>
> Hi, I have the same/similar question: sometimes data should be flushed
> to the remote side (eg: user pressed key ENTER), but I do not see any
> function
> to force this.. (disabling Nagle-algorithm is <i>not exactly</i> the same
> thing)

TCP normally sends the data quickly -- the delay you're trying to get
rid of is on the order of a few milliseconds, not something the user
would notice.

So I think you're trying to solve a non-problem.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA


Relevant Pages

  • Re: double buffering
    ... >the middle of drawing a frame. ... If you're learning about double buffering, you might also want to look ... Once upon a time, not so long ago, we did not have frame ... whole and to display that whole. ...
    (comp.graphics.algorithms)
  • Re: mpeg2 demux output pin buffer size
    ... before you get the first frame output and so I suppose you think that ... in buffering will increase the time for the pause to complete, ... Limitation on my mpeg2 decoder filter ... In this case which time stamp do I attach to the ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Quake performance SGI vs Sun
    ... > Not on an SGI. ... No triple buffering. ... And it introduces one extra frame ... > driver combinations. ...
    (comp.sys.sun.hardware)
  • Re: Quake performance SGI vs Sun
    ... > The latency is the time between rendering the frame and displaying it. ... and misleading at best, with triple buffering, in worst case, we get ...
    (comp.sys.sun.hardware)
  • Re: mpeg2 demux output pin buffer size
    ... frame worth of data at once for decoding.But mpeg2 demux filter ... sync goes for a toss because of this buffering involved. ... feed data to the decoder. ... Is my assumption right that every frame has ...
    (microsoft.public.win32.programmer.directx.video)