Re: Trying to send data to PC
Re: Trying to send data to PC
- Subject: Re: Trying to send data to PC
- From: Quinn <email@hidden>
- Date: Mon, 14 Dec 2009 09:27:48 +0000
At 21:32 -0400 13/12/09, Daniel Veneros wrote:
Does anyone knows how can I connect both pplatforms using sockets?
On the Mac side you can use a variety of different networking APIs.
The one I generally recommend is NSStreams, as illustrated by the
SimpleNetworkStreams sample. Alternatively, you can use the standard
BSD sockets API.
<http://developer.apple.com/iPhone/library/samplecode/SimpleNetworkStreams/index.html>
On the Windows side... well, let's just say I'm not enough of a
Windows expert to offer you specific advice about Windows programming.
Ultimately this is going to boil down to one of the machines opening
a listening socket and registering it as a Bonjour service. The
other machine then browses for services, resolves the appropriate
one, and connects to it. At this point the server side accepts the
connection and communication can proceed.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden