Re: NSNetService & NSURLConnection on Tiger

2009-02-17 Thread Houdah - ML Pierre Bernard
Hi! This is what I came up with: @implementation NSNetService (ipv4) - (NSArray*)ipv4addresses { NSMutableArray * ipv4addresses = [NSMutableArray array]; NSArray *addresses = [self addresses]; int aCount = [addresses count]; char addr[256]; for (

Re: NSNetService & NSURLConnection on Tiger

2009-02-17 Thread Kyle Sluder
See the documentation for -[NSNetService addresses]. You can use that to go from NSNetService -> NSData -> sockaddr_in -> NSURL -> NSURLConnection. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

NSNetService & NSURLConnection on Tiger

2009-02-17 Thread Pierre . bernard
Hi! I am trying to use NSURLConnection to connect to a HTTP server that's advertised using Bonjour. Thus I have a NSNetService on the client, but need a IP and port number. The catch being that the juicy NSNetService methods are on Leopard only. Thanks in advance for your assistance. Pierre