Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: How can I tell if a port is already being used?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I tell if a port is already being used?



On Dec 27, 2006, at 3:04 PM, Brian Stibi wrote:

Where can I find a meaningful representation of the UNIX-type errors.

`man 2 intro`, or look up "intro" in the Xcode doc window. Error 38 is listed as:
38 ENOTSOCK Socket operation on non-socket. Self-explanatory.


I would have expected EADDRINUSE, but maybe Apple's error propogation is sub-optimal here. Have you checked that sockPort is non-nil and sockFD isn't -1?

--
Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: How can I tell if a port is already being used? (From: Brian Stibi <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.