Re: Does close() close a TCP socket?

Richard B. Johnson (root@chaos.analogic.com)
Mon, 16 Feb 1998 18:07:52 -0500 (EST)


close(s) does, indeed close the socket. However, if you want to use the
same port within a short period of time, you have to use:

setsockopt(s, SO_REUSEADDR,....)

Cheers,
Dick Johnson
***** FILE SYSTEM MODIFIED *****
Penguin : Linux version 2.1.85 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu