Gentoo Archives: gentoo-embedded

From: Mathieu Dube <mujo@×××××.org>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] sys/socket.h - no close() ?
Date: Thu, 17 Jan 2008 21:51:50
Message-Id: 20080117215148.GA39079@dubix.org
In Reply to: [gentoo-embedded] sys/socket.h - no close() ? by Jean-Claude Gervais
1 On Thu, Jan 17, 2008 at 04:44:43PM -0500, Jean-Claude Gervais wrote:
2 > Usually, I would call 'closesocket' (on Windows) or 'close' on *nix but
3 > the sys/socket.h file doesn't define a close function, so which close do
4 > I call?
5
6 you can call close included unistd.h on the fd(socket)
7
8 or shutdown from sys/socket.h
9
10 -M
11 --
12 Give a man a fire and he'll be warm for a day. But light a man on fire and
13 he'll be warm for the rest of his life.
14 --
15 gentoo-embedded@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] sys/socket.h - no close() ? Bob Dunlop <bob.dunlop@×××××××××.uk>