TdiBuildReceive question

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi, folks,
If I submits a Irp built by TdiBuildReceive to tcpip.sys, is it possible when the Irp is completed neither it's buffer is filled fully nor the connection is aborted or closed?
My driver never expects the Irp is completed before the buffer is full if the connection is ESTABLISH state. However, I meet it in the real world, e.g. Irp->IoStatus.Status = STATUS_SUCCESS, Irp->IoStatus.Information < the size of the buffer. And I never set TDI_RECEIVE_PEEK.
The WDK mentioned:
" Unless the TDI_RECEIVE_PEEK flag is set, the underlying transport fills the given buffer with received data until the client's buffer is full or the *transport receives an end-of-record indication from the remote node*."
What's the meaning of end-of-record indication for tcp connection?
Thanks a lot for your help.
.



Relevant Pages

  • Re: Context of error messages with respect to BSD sockets
    ... under what circumstances will send or recv block? ... A 'connection mode' socket usually has an in-kernel send and ... receive buffer associated with it. ... this signifies that the connection has closed ...
    (comp.unix.programmer)
  • WMP9 Performance tab - Use it, or no?
    ... If I let WMP detect the connection speed, ... the audio plays a half second, breaks for a half second, plays for ... If I extend the buffer out to the max, I do get decent playback, ... Only 2 years ago NASA was using the older format ...
    (microsoft.public.windowsmedia.player)
  • Re: help out a boob? whats wrong with this? callback not firing when called recursively
    ... sender has not closed the connection. ... much as all of the rest of the data or the size of your buffer (whichever ... But just as you need to be able to reassemble ... Since reassembling delimiters isn't any different from reassembling the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: embedded tcp input only optimizations
    ... todays syn flood prevention algorithms in place I think ... interupt based on the timer and deal there with segment ... same time summarize it in a CPU register, then store it in your buffer ... stack should only deal with one connection at a time. ...
    (comp.arch.embedded)
  • Re: MFC Not Triggering OnReceive
    ... simple program that listens for a connection, ... program and i cannot get myonReceiveto trigger. ... when i send data to it the buffer receives the data but theonReceive ... the framework automatically calls the OnReceive function. ...
    (microsoft.public.vc.mfc)