Bug 34449 - NSNetService GetStreams is not exposed
Summary: NSNetService GetStreams is not exposed
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: unspecified
Hardware: PC Mac OS
: Normal enhancement
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-09-30 12:27 UTC by James Clancey
Modified: 2015-09-30 21:14 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description James Clancey 2015-09-30 12:27:56 UTC
The GetStreams method is marked internal and it should be public.Also it has the wrong parameters. The correct binding is:

[Export ("getInputStream:outputStream:")]
bool GetStreams (out Foundation.NSInputStream inputStream, out Foundation.NSOutputStream outputStream);

https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNetService_Class/index.html#//apple_ref/occ/instm/NSNetService/getInputStream:outputStream
Comment 1 Sebastien Pouliot 2015-09-30 15:05:22 UTC
It's rather common to use IntPtr for [Internal]-decorated API. It means that the generator was (it's an old, 2010 commit) not about to automatically generate the code (it likely did not like the `out` parameters in 2010). 

The main issue is that this was never exposed in a public API (calling the internal one).
Comment 2 Sebastien Pouliot 2015-09-30 21:14:23 UTC
Fixed in maccore/master 11d1a860f185fbca17ba223023d82f5bccb991d1