Re: disposing socket?
Re: disposing socket?
- Subject: Re: disposing socket?
- From: "Justin C. Walker" <email@hidden>
- Date: Wed, 1 Oct 2003 21:33:58 -0700
On Wednesday, October 1, 2003, at 09:15 PM, Roy Lovejoy wrote:
longtime OT, first time BSD-
am I missing something obvious?
there is no 'closesocket' equivalent?
no 'OTCloseProvider' equivalent?
A 'socket' (as returned by "socket(2)") is just a Unix file descriptor.
Although you can't get one of these with "open(2)", you do close it
with "close(2)".
Since this is your first brush with the BSD 'sockets' API, you might
want to check W. Richard Stevens's book "Unix Network Programming", V.
1, 2nd Ed., Prentice Hall, 1998. It's an excellent reference.
Stevens's home page (http:www.kohala.com) contains a bunch of code
related to this and others of his exceptional books.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | If you're not confused,
| You're not paying attention
*--------------------------------------*-------------------------------*
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.