• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: disposing socket?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >disposing socket? (From: Roy Lovejoy <email@hidden>)

  • Prev by Date: Re: disposing socket?
  • Next by Date: Re: How to do ARP on OS X?
  • Previous by thread: Re: disposing socket?
  • Next by thread: Re: How to do ARP on OS X?
  • Index(es):
    • Date
    • Thread