• 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: create a server listening on a specific port
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: create a server listening on a specific port


  • Subject: Re: create a server listening on a specific port
  • From: Jiva DeVoe <email@hidden>
  • Date: Wed, 23 Mar 2005 23:09:25 -0700

Yeah, you want to use sockets. The NSNetService/NSSocketPort etc classes are very poorly named. They really are totally not useful if you are looking to just do some plain jane socket coding.

For that, you basically need to use bsd sockets or - I seem to recall there's a few Objective-C wrappers out there for bsd sockets.

On Mar 23, 2005, at 3:17 PM, Justin Spahr-Summers wrote:

Keep in mind you can always use C functions, and thus, BSD sockets.
Type "man socket" into the Terminal for more information.

On Wed, 23 Mar 2005 08:33:55 +0100, Hanspeter Spalinger
<email@hidden> wrote:
Hi there again,

I try to create a very small and simple server listening on a public
port (port number > 49151).
I tried some Cocoa classes like NSNetService, NSSocketPort,
NSConnection, but all of them create services already connected to a
local port (102x)
How do I create a server listening for connections? I think this should
be simple, but dind't found something in the archives. Can someone
provide a link for HOWTOs on that topic?


Hanspeter

ps: I dind't find something on the Net. I'm perhaps using wrong
keywords, cause I'm not a native english speaker, and I often trie to
search simple things on the net, but don't find anything. Does someone
know a guide for searching developer stuff, including something like a
list/suggestion of keywords often used?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

--
Jiva DeVoe
http://www.devoesquared.com
PowerCard - Intuitive Project Management for Mac OS X

_______________________________________________
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


References: 
 >create a server listening on a specific port (From: Hanspeter Spalinger <email@hidden>)
 >Re: create a server listening on a specific port (From: Justin Spahr-Summers <email@hidden>)

  • Prev by Date: spell checker using sheet problem
  • Next by Date: Re: image larger than 32*32 in toolbar
  • Previous by thread: Re: create a server listening on a specific port
  • Next by thread: Re: create a server listening on a specific port
  • Index(es):
    • Date
    • Thread