Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie bonjour question



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You might want to look at a freeware chat client called Miranda Local - - i was put onto this as i was trying to develop a Bonjour Chat client on windows that can talk to iChat on the Mac - No point re- inventing the wheel

http://xurble.org/projects/ - you can download a plugin for the full Miranda IM Client or just a stripped down version (Miranda Local) that only contains the ability to chat to other Bonjour users. I've used it and it works well.

And incase your wondering how it talks they use the XMPP Protocol http://www.xmpp.org/

Ste

- --
Steven Carr - IT Consultant
ITS Dept. - (0191) 33 4 2729
http://www.dur.ac.uk/steven.carr

On 7 Jun 2005, at 23:57, Amandeep Jawa wrote:

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

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin)

iD8DBQFCpppeg6K71gPSyTARAk7eAJ9i6cVEHeW/4r982dcibBYbpqjW0ACgqdRk
tJKjTLBK0M98ekw8kxtUoZI=
=0TlS
-----END PGP SIGNATURE-----
_______________________________________________
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
References: 
 >Newbie bonjour question (From: Eivind Andersen <email@hidden>)
 >Re: Newbie bonjour question (From: Amandeep Jawa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.