• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying to send data to PC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: Trying to send data to PC
      • From: Kenny Millar <email@hidden>
References: 
 >Trying to send data to PC (From: Daniel Veneros <email@hidden>)

  • Prev by Date: Trying to send data to PC
  • Next by Date: RE: Trying to send data to PC
  • Previous by thread: Trying to send data to PC
  • Next by thread: RE: Trying to send data to PC
  • Index(es):
    • Date
    • Thread