Re: [iPhone] networking
Re: [iPhone] networking
- Subject: Re: [iPhone] networking
- From: James Lin <email@hidden>
- Date: Wed, 5 Aug 2009 01:49:55 +0800
I am trying to make the iPhone a server and a client at the same time...
What I am trying to accomplish...
1. iPhone running my application opens a "server" socket and listens
for incoming network connection from another iPhone running the same
application.
2. The server socket has an "ip address" that i can register with my
php/mysql server.
3. Another iPhone running my same app acts as the client gets the
iPhone server's ip address from the server and make connection to the
server iPhone.
4. The client iPhone sends a string "hello, I am James" to the server
iPhone and the server iPhone reply with the user's choice of either
"Hi, Nice to meet you" or "Get lost!" strings.
ps. the port number i chose was 2048
This is all i am trying to accomplish, but i am making slow progress
and banging my head against the wall...
Any ideas/suggestions are greatly appreciated...
Thanx again...
James
On 2009/8/4, at 下午 11:50, Dave Camp wrote:
On Aug 4, 2009, at 5:43 AM, James Lin wrote:
Hi all,
Does anyone know the limitation of the iPhone simulator when it
comes to networking?
Is it crippled on the simulator?
I've tried two seperate ways of opening up a "server" socket.
By "server" socket, do you mean you are trying to connect to a
server somewhere, or that you are trying to open a low numbered
(i.e. < 1024) port locally so that you can be a server?
The simulator cannot open low numbered ports for inbound connections
but iPhones running OS 3.0 and later can.
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden