Bonjour and sending data
Bonjour and sending data
- Subject: Bonjour and sending data
- From: Jesus De Meyer <email@hidden>
- Date: Tue, 2 May 2006 10:31:15 +0200
Hi,
I have an application that works with Bonjour and so far I can
successfully publish services and detect services from others running
my app. However, I'm strugling with how I send data to these services
and how I receive data from them. I understand that this has nothing
to do with Bonjour itself, but is more of a socket related issue.
I don't have much experience with BSD sockets, but I know that the
NSFileHandle class can act as a socket. However, I don't know how to
actually use this with Bonjour. I've seen the PictureSharing example,
but I don't really understand the sending/receiving data part. The
publishing part uses an NSFileHandle to send data and the browsing
part uses the new NSSocket class to receive the data, but which one
should I use for my application (which acts both as server and client).
So basically what I wanna do is: when my app launches, detect all
running services and get the data (which is going to be a text file)
from them. And also, when my app receives a request, send the data to
the app that requested it.
Thanks in advance,
Jesus
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden