Elvind -
Congratulations....
The good news is that you have gotten Bonjour to do pretty much
everything it is suppossed to do. Bonjour is JUST for discovering
the IP addresses of other services you may want to connect to.
The bad news is that Bonjour has nothing to do with what you do
once you have discovered the IP addresses you care about.
Actually communicating between client and server is usually done
with sockets programming. If you google "socket programming
example" - you will get PLENTY of examples of how to do this.....
Here are two that looked interesting at first glance:
http://pont.net/socket/
http://www.cs.rpi.edu/courses/sysprog/sockets/sock.html
You also may want to look around for Cocoa examples........
'deep
On Jun 7, 2005, at 3:28 PM, Eivind Andersen wrote:
Hi,
I'm pretty new to cocoa and have a question about my first bonjour
application.
The program should be able to recieve and send strings with the
the same app on different machines on the same LAN. I guess you
could say that my app it's just a simple instant messenger on the
local area network.
I have been able to start a new service, and find the other
services. From this I get the IP-addresses to the machines I want
to communicate with.
Now I wonder, what is the best way to initiate communation in this
scenario? I only need to send simple strings to the other apps
(but I guess it would be better to use whole objects). Is there
some function build into Bonjour that enables you to do this, or
do I have to connect the apps to each other manually?
Do you know of any source code out there that could help me?
I'm grateful for any help!
Eivind Andersen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden
This email sent to email@hidden
----------------------------------
Amandeep Jawa
Sr. Software Engineer
Applications: iTunes
----------------------------------
email@hidden
1 408-974-8370
personal: http://www.deeptrouble.com
political: http://www.sflcv.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/steven.carr%
40durham.ac.uk
This email sent to email@hidden