Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Howiieque

macrumors regular
Original poster
Feb 1, 2009
120
0
I want to write an app send text between two macs like the msn do. I just want to learn how to do so and learn something about network. what should i learn to implement this task? and which classes can facilitate things?
and what if connect to a windows?
 

aaronw1986

macrumors 68030
Oct 31, 2006
2,622
10
I wrote soemthing exactly like this just last year in one of my programming classes. I'd look into C with emphasis on pipes
 

Howiieque

macrumors regular
Original poster
Feb 1, 2009
120
0
could you give a little more hints, about pipe?
and it seems that socket can do this thing, is there another option?
 

Krevnik

macrumors 601
Sep 8, 2003
4,101
1,312
Yeah, there are two ways to do this:

BSD Sockets
Cocoa Distributed Objects

Either one will work. If you intend to make this app multi-platform in the future (Beyond iPhone and Mac), then I'd look into BSD Sockets. Otherwise distributed objects should be just fine.
 

Howiieque

macrumors regular
Original poster
Feb 1, 2009
120
0
Thank you for given all the information.
Sockets and distributed object are both what i want to learn, although i just heard of them and don't know what they exactly are.
And then i want to Windows join in by using Java.
 

Krevnik

macrumors 601
Sep 8, 2003
4,101
1,312
Yup, look at sockets.

It will require more work on your part, but the code will be more portable. The same basic concepts will apply on any Unix-like system, Windows, Java, OS X, and so on.

It will also give you a bit more fine control over the data sent.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.