On Thu, Jan 17 at 04:51, Mathieu Dube wrote:
> On Thu, Jan 17, 2008 at 04:44:43PM -0500, Jean-Claude Gervais wrote:
> > Usually, I would call 'closesocket' (on Windows) or 'close' on *nix but
> > the sys/socket.h file doesn't define a close function, so which close do
> > I call?
> 
> you can call close included unistd.h on the fd(socket)
> 
> or shutdown from sys/socket.h

Uhm.  shutdown() does not release the file/socket descriptor and you
still need to call close().  Simpler just to call close() in the
first place.


-- 
        Bob Dunlop
-- 
[email protected] mailing list

Reply via email to