• 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
[Q] CoreFoundation functions or Cocoa classes to make a server socket?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] CoreFoundation functions or Cocoa classes to make a server socket?


  • Subject: [Q] CoreFoundation functions or Cocoa classes to make a server socket?
  • From: JongAm Park <email@hidden>
  • Date: Wed, 28 Jan 2009 13:06:45 -0800

Hello.

I already use NSInput/OutputStream to communicate with a server.
However, to get notification from the server, my client should register to the server, then server tries connect back to my client.
At first I thought that connecting to the server and obtaining in/out stream would do it, but it turned out that my client program should listen to a port. However, it doesn't seem to me that there are classes or functions in Cocoa and Core Foundation framework.


Am I missing something? or should I create a server socket for listening using BSD calls?
I don't think that Apple doesn't support creation of such server socket in Cocoa/Core Foundation.
So probably I'm missing something..


Thank you.
JongAm Park

_______________________________________________
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: [Q] CoreFoundation functions or Cocoa classes to make a server socket?
      • From: Scott Ribe <email@hidden>
    • Re: [Q] CoreFoundation functions or Cocoa classes to make a server socket?
      • From: Jens Alfke <email@hidden>
    • Re: [Q] CoreFoundation functions or Cocoa classes to make a server socket?
      • From: email@hidden
  • Prev by Date: Leopard SAN/NAS Issues Copying To-From
  • Next by Date: Re: [Q] CoreFoundation functions or Cocoa classes to make a server socket?
  • Previous by thread: Re: Leopard SAN/NAS Issues Copying To-From
  • Next by thread: Re: [Q] CoreFoundation functions or Cocoa classes to make a server socket?
  • Index(es):
    • Date
    • Thread