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 (
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
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