nsnetservice

Converting [NSNetservice addresses] to ip address string

This question was already asked here: http://stackoverflow.com/questions/1720316/nsnetservice-ip-address and here: http://stackoverflow.com/questions/938521/iphone-bonjour-nsnetservice-ip-address-and-port I've used both of those to get where I'm at now. My problem is the following method I have doesn't quite work: - (NSString *)getSt...

How to sync iPhone and Mac CoreData objects through bonjour?

I know similar questions have been asked before. I'm using the Sync Demo app I found online here, which uses Picture Sharing as a guide. I've integrated it into my desktop and iphone apps and have the connection working, but am clueless as to how to actually sync my objects. Is it as simple as if ([iphone Object] != [desktop object])...

Send AppleScript to remote computer in Objective-C

How do you use Objective-C (iPhone) to send an AppleScript to a remote computer (on same network) to be executed? I think something like NSNetService would be of use here, but I don't know. EDIT: Ok, to clarify, all I want to do is send a command ID or something and then the Computer associate that with the corresponding AppleScript co...

Connect iPhone/iPad with Mac (the Apple way)

Hello, When Apple's Remote app tries to connect to a Mac (running iTunes) on a local network (using WiFi), the user needs to enter a passcode provided by the iPhone as a security measure. This approach has been adopted by a number of other apps (e.g., Rowmote, Pastebot, ...). Is there an API that provides this way of working? Assuming ...

iPad netservice with more devices

Heey I want to make a netservice where more ipads can connect to at the same time. I made a one 1 iPad open a NSNetservice and open the in- and outputstream. I started a netservice on iPad A, When connecting with iPad B to iPad A this just works fine. But when iPad C tries to connect the following happens: - Tries to resolve the NSN...

How do we detect if wifi becomes unavailable in iPhone SDK

Hi All, Is there any way that we can programatically identify when the wifi of a user becomes available/unavailable? My application requires exchanging messages between two different devices. It is working good in stable wifi setups. But if the wifi is unstable, I am having trouble in detecting if the other device is available or not....

NSNetServiceBrowser delegate not called when searching

I got a really annoying problem. Im trying to search after a NSNetService (that i know exist). I've copied the example code from http://www.macresearch.org/cocoa-scientists-part-xxviii-bonjour-and-how-do-you-do into my own application. I can see (in the example program) that my service is created. But when i hit search, and start a NSNe...

How to find out if removed NSNetService is equal to already resolved NSNetService?

Hello, in my iPhone app I have a NSNetServiceBrowser looking for a specific service published via Bonjour. Once it finds a NSNetService I resolve this service (to get the name, IPs and port) and display a list of those found services. Now the problem/question: Once a service stops publishing via Bonjour the NSNetServiceBrowserDelegate ...

Bonjour IM Client

Hi guys, I want to make an iPhone app which communicates with iChat on Mac OS X via Bonjour. I have already known how to create a service using NSNetService, but how can I communicate with iChat? What service type do I need? Any help would be appreciated. Thanks in advance! ...

Scan local network to detect windows/mac/linux computers with iPhone.

I'm trying to figure how to perform some networking tasks using Objective C on the iPhone. I'd like to enumerate all network devices on my local, home network. Also, I'd like to be able to ping individual devices. Does anyone know how and what tools/libraries I can use to achieve this and other networking tasks? I've checked the iPhone ...

iPhone Reachability of multiple hosts from NSNetServices

Hi, in my iPhone app I list some hosts that publish themselves via bonjour (NSNetService). The user is able to save those hosts to a favorites list. What I want to do is to check if those hosts are reachable via LAN or if they are offline. To do this I am observing ReachabilityChangedNotifications in my ViewController: [[NSNotificatio...

NSNetservice did not get netServiceDidPublish delegate call

Hi, what I want to do is enable a simple bonjour service on my ipod touch. And after I publish my custom bonjour service, the delegator did not get "netServiceDidPublish:" call. I also check there is not any error message from "netService:(NSNetService *)sender didNotPublish:". Below is my code section: // AsyncSocket class comes from ...