peyo
peyo

Reputation: 11

TCP sockets on Iphone

I have been programming in C and Java for a few years, and I decided to make a project for the iphone. Needless to say the Objective-C syntax is very different from what I've seen and I am having a lot of trouble in implementing my idea. I have written a java Client-server program. The client establishes a TCP socket connection and send a string, and the server accepts it and does whatever it needs to with it.

That being said, I have no idea how to implement my program in objective-C. I know about the AsyncSocket classes...but my biggest problem is that I am not familiar with the syntax. I am in school and I don't have time to fully learn it, so i was hoping someone could give me some help or give me some simple samples which establish a connection so I can learn from them and implement my idea.

Upvotes: 1

Views: 841

Answers (2)

raaz
raaz

Reputation: 12500

You can use ASIHTTPRequest Framework for your problem.

Upvotes: 0

Hollance
Hollance

Reputation: 2976

If you have experience with BSD sockets, then you can write your socket code in plain C. Objective-C is a superset of C, so anything that works in C will work in Objective-C.

Upvotes: 2

Related Questions