Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Winsock namespace provider problem



 Hi Scott,

Not a problem, I'm going to play with it this week and see what I can
come up with.

You are dead right. It definitely should return socket error and
SetLastError(WSA_INVALID_PARAMETER). That might cause winsock to give
the resource not found error if we return the wrong error. I'll let you
know what I find.

Cheers,

Sam
-----Original Message-----
From: Scott Herscher [mailto:email@hidden] 
Sent: Friday, 16 December 2005 7:16 PM
To: Sam Kenny
Cc: email@hidden
Subject: Re: Winsock namespace provider problem

Hey Sam.  That is puzzling...and I'm not really sure why Windows is
returning 1813 (ERROR_RESOURCE_TYPE_NOT_FOUND).  One thing that is a
little suspect with the NSP code however is how errors are being  
returned in some of the unimplemented functions.   
NSPInstallServiceClass just returns WSA_INVALID_PARAMETER.  However, if
memory serves correctly, one is supposed to return SOCKET_ERROR and set
the specific error with SetLastError.  Any chance you could make this
change in the NSP source code, reinstall it, and see if anything
changes?

Also...the NSP is self-registering...you don't need NSPTool.  Just use
regsvr32 on the dll to install/remove it.

Take care,

Scott

On Dec 14, 2005, at 6:58 PM, Sam Kenny wrote:

> Hi All,
>
> I'm currently evaluating the Winsock Registration and Resolution APIs 
> and have noticed when calling WSAInstallServiceClass without Bonjour 
> installed I'm getting the error code 10045 (WSAEOPNOTSUPP) but when 
> Bonjour is installed, the error code is odd (1813). I built the 
> NSPTool from the source code, disabled mdnsNSP, and the correct error 
> code is returned again.
>
> I had a look through the NSP source code, but nothing jumped out at me

> straight away except that the mdnsNSP NSPLookupServiceBegin 
> implementations doesn't actually check what type of query is being 
> invoked but just blindly tries to see if it's suffix is ".local", but 
> that still doesn't explain the weird error code.
>
> Any thoughts on what is going on here?
>
>
> Cheers,
>
> Sam
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Bonjour-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/bonjour-dev/sherscher%
> 40apple.com
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden

This email sent to email@hidden



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.