• 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: Sending ASCII Messages to a TCP Socket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending ASCII Messages to a TCP Socket


  • Subject: Re: Sending ASCII Messages to a TCP Socket
  • From: Ben Barry <email@hidden>
  • Date: Mon, 16 Oct 2006 12:21:55 -0500

I've looked at all of the recommendations and I am unsure as to which would make more sense, NSStream looks as though it would be simpler to implement, but I'm not sure what I should be looking for.

The device I want to connect to is has a static IP and I would need to send a message like:
"getstatus" on port 4998.


Would one work better then the other for something like that?

Ben
On Oct 16, 2006, at 10:54 AM, Shawn Erickson wrote:


On Oct 15, 2006, at 11:20 PM, Dustin Voss wrote:

On 15 Oct 2006, at 3:13 PM, Shawn Erickson wrote:

On Oct 15, 2006, at 3:08 PM, Ben Barry wrote:

Hi,
I was just wondering what the easiest way would be to send an ASCII string to a device that requires a TCP connection would be. I am fairly new to Cocoa as well as network programming so any advice would be appreciated.

Look at NSSocketPort and its parent class NSPort.

-Shawn

Isn't NSSocketPort and NSPort for Distributed Objects? Perhaps Ben Barry should look at NSStream instead.

Likely... but for all we know http put is what he needs which would mean that CFURL access utilities may be more correct.


-Shawn

_______________________________________________ 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: Sending ASCII Messages to a TCP Socket
      • From: Shawn Erickson <email@hidden>
References: 
 >Sending ASCII Messages to a TCP Socket (From: Ben Barry <email@hidden>)
 >Re: Sending ASCII Messages to a TCP Socket (From: Shawn Erickson <email@hidden>)
 >Re: Sending ASCII Messages to a TCP Socket (From: Dustin Voss <email@hidden>)
 >Re: Sending ASCII Messages to a TCP Socket (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: multi-threading, AppKit etc
  • Next by Date: Re: Sending ASCII Messages to a TCP Socket
  • Previous by thread: Re: Sending ASCII Messages to a TCP Socket
  • Next by thread: Re: Sending ASCII Messages to a TCP Socket
  • Index(es):
    • Date
    • Thread