Subject: | |
From: | |
Reply To: | |
Date: | Tue, 14 Nov 1995 11:06:33 +1100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
At 03:14 PM 13/11/95 P, Steve Dirickson b894 westwins wrote:
>Does anyone have any information on why the "approved" sequence for
>shutting down NetIPC sockets, i.e. something along the lines of
[code snipped...]
>produces
> Socket 12 IPCSHUTDOWN error: 7
>? Error 7 being "invalid FLAGS parameter". It doesn't cause an
>operational problem, but the error is irritating. Thanks.
I would suggest
IPCSHUTDOWN(pSock->m_hSocket, &flag, NULL, &res32);
^^^^
to ensure the parameters are being passed properly.
Also, while your loop checks for an error condition, it doesn't check the
value of the error condition. Err 68 is expected, all others you want to
investigate further. As well, if the socket conneciton is a TCP stream,
then I wonder about the value of the flag parameter on the IPCRECV -- I
think the this flag was intended more for X.25 connections.
Hope this helps.
----
Jim "seMPEr" Wowchuk
Vanguard Computer Services Internet: [log in to unmask]
_--_|\ Compu$erve: 100036,106
/ \ Post: PO Box 18, North Ryde, NSW 2113
\.--.__/ <---Sydney NSW Phone: +61 (2) 888-9688
v Australia Fax: +61 (2) 888-3056
|
|
|