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
- Next message: Michael B Allen: "Re: Determine if open(2) created or opened?"
- Previous message: Barry Schwarz: "Re: Unseen error"
- In reply to: Lorinczy Zsigmond / Domonyik Mariann: "Re: How to I force a Data to be send out at once in socket send"
- Next in thread: postbeerliu: "Re: How to I force a Data to be send out at once in socket send"
- Reply: postbeerliu: "Re: How to I force a Data to be send out at once in socket send"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Michael B Allen: "Re: Determine if open(2) created or opened?"
- Previous message: Barry Schwarz: "Re: Unseen error"
- In reply to: Lorinczy Zsigmond / Domonyik Mariann: "Re: How to I force a Data to be send out at once in socket send"
- Next in thread: postbeerliu: "Re: How to I force a Data to be send out at once in socket send"
- Reply: postbeerliu: "Re: How to I force a Data to be send out at once in socket send"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|