Subject: | |
From: | |
Reply To: | |
Date: | Fri, 7 Jul 1995 09:11:30 +1000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
At 09:37 AM 6/7/95 PDT, Dan Hollis wrote:
>Is there any way to _ensure_ the data has been sent and to the remote end
>and ACK'd before the connection is released? Graceful shutdown of sockets
>doesn't seem to work -- data still gets dropped (but no error is reported).
>
>AFAIK, you can only tell that the HP has sent all the data, but not that the
>remote end has ACK'd all of it. (This from watching a packet sniffer on the
>network).
I've always found that a graceful close works fine
Step Client Server
1 ... ipcrecv()
2 ipcshutdown(Graceful)
3 ipcrecv() -detect graceful
4 Loop ipcsend() -send
5 -get any remaining
6 ipcrecv()
7 ipcshutdown(immediate)
8 -detect close
9 ipcshutdown(immediate)
Steps 4 through 6 may not be needed.
How is the lack of a TCP ACK manifested as a problem? At which end?
----
Jim "seMPEr" Wowchuk Internet: [log in to unmask]
Vanguard Computer Services Compu$erve: 100036,106
_--_|\ Post: PO Box 18, North Ryde, NSW 2113
/ \ Phone: +61 (2) 888-9688
\.--.__/ <---Sydney NSW Fax: +61 (2) 888-3056
v Australia
|
|
|