HP3000-L Archives

November 1995, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jim Wowchuk <[log in to unmask]>
Reply To:
Jim Wowchuk <[log in to unmask]>
Date:
Tue, 14 Nov 1995 11:06:33 +1100
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
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

ATOM RSS1 RSS2