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

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


  • Subject: Re: [Q] CoreFoundation functions or Cocoa classes to make a server socket?
  • From: email@hidden
  • Date: Wed, 28 Jan 2009 21:17:11 +0000

Hi JongAm,

won't you have terrible trouble listening on a port because, usually, most people's Macs / Macbooks are behind typical WiFi routers, firewalls, etc etc?

Or do you mean in a situation like a corporate situation where you control all the machines and teh connections are internal only?

Kindly, JP


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

_______________________________________________ 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
References: 
 >[Q] CoreFoundation functions or Cocoa classes to make a server socket? (From: JongAm Park <email@hidden>)

  • Prev by Date: [Q] CoreFoundation functions or Cocoa classes to make a server socket?
  • Next by Date: Re: [Q] CoreFoundation functions or Cocoa classes to make a server socket?
  • Previous by thread: [Q] CoreFoundation functions or Cocoa classes to make a server socket?
  • Next by thread: Re: [Q] CoreFoundation functions or Cocoa classes to make a server socket?
  • Index(es):
    • Date
    • Thread