• 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
SIMPLE way to pass Objects over a network
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SIMPLE way to pass Objects over a network


  • Subject: SIMPLE way to pass Objects over a network
  • From: Joseph <email@hidden>
  • Date: Wed, 18 May 2005 13:30:00 -0700

Hey all,
This is my first post to this list, so forgive me if I'm missing out on decorum. :-)


Is there a simple way to send Objects over a network without blocking? I'm aware of NSConnection as a way of vending objects, but that seems to me a brute-force way to do things for the application I'm working on. What I need is a simple way for a server to wait, without being blocked, on client connections. The client connects, sends an object to the server (again, not blocking during the send), the server receives it, sends an object back, and that's that. The connection dies.

The server needs to be able to handle multiple client connections simultaneously.

Coming from Java, I'm used to instantiating a thread to handle network connections. This is apparently the wrong way of doing things in Cocoa. Can someone point a new MacOS X developer in the right direction?



Joseph
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: SIMPLE way to pass Objects over a network
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Cocoa Bindings + User Defaults Controller Trouble
  • Next by Date: Re: Cocoa Bindings + User Defaults Controller Trouble
  • Previous by thread: Re: sample code for connecting to server
  • Next by thread: Re: SIMPLE way to pass Objects over a network
  • Index(es):
    • Date
    • Thread