• 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: Test for TCP port
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test for TCP port


  • Subject: Re: Test for TCP port
  • From: Sherm Pendley <email@hidden>
  • Date: Fri, 08 Apr 2011 20:01:03 -0400

On Fri, Apr 8, 2011 at 6:26 PM, Heizer, Charles <email@hidden> wrote:
>
> What is the best way to test to see if a TCP port is reachable and will answer connections? I was trying to use NSSocketPort and NSConnection but I'm not getting a valid connection.
>
> NSSocketPort *sendPort = [[NSSocketPort alloc] initRemoteWithTCPPort:3600 host:@"test.myhost.com<http://test.myhost.com>"];

That's not a valid host name. Try connecting to just @"test.myhost.com" instead.

sherm--

--
Cocoa programming in Perl:
http://camelbones.sourceforge.net
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Test for TCP port (From: "Heizer, Charles" <email@hidden>)

  • Prev by Date: NSDateFormatter setDoesRelativeDateFormatting: broken?
  • Next by Date: Re: Test for TCP port
  • Previous by thread: Re: Test for TCP port
  • Next by thread: Re: Test for TCP port
  • Index(es):
    • Date
    • Thread