1 |
On Thu, Jan 17 at 04:51, Mathieu Dube wrote: |
2 |
> On Thu, Jan 17, 2008 at 04:44:43PM -0500, Jean-Claude Gervais wrote: |
3 |
> > Usually, I would call 'closesocket' (on Windows) or 'close' on *nix but |
4 |
> > the sys/socket.h file doesn't define a close function, so which close do |
5 |
> > I call? |
6 |
> |
7 |
> you can call close included unistd.h on the fd(socket) |
8 |
> |
9 |
> or shutdown from sys/socket.h |
10 |
|
11 |
Uhm. shutdown() does not release the file/socket descriptor and you |
12 |
still need to call close(). Simpler just to call close() in the |
13 |
first place. |
14 |
|
15 |
|
16 |
-- |
17 |
Bob Dunlop |
18 |
-- |
19 |
gentoo-embedded@l.g.o mailing list |