• 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 13:12:59 -0500

Thanks Shawn ! I'll keep plugging away with the NSStream stuff.
On Oct 16, 2006, at 12:45 PM, Shawn Erickson wrote:


On Oct 16, 2006, at 10:21 AM, Ben Barry wrote:

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.

What do you mean by "message"?

Is it just a plain ASCII string sent to that port? Is it an HTTP request? etc.
What happens when the device gets this message? Are you expecting data to come back? If so what form is that data in?


If I had to guess I bet you are trying to interface with a Global Caché device (based on the port involved). If that is the case then what the following API docs outline <http://www.globalcache.com/ files/Documentation/API_GC-100.pdf> is the sending of ASCII strings... in other words NSStream and friends are likely the best fit at the Cocoa level.

Review... <http://developer.apple.com/documentation/Cocoa/ Conceptual/Streams/index.html>

-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
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>)
 >Re: 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>)

  • Prev by Date: Re: Sending ASCII Messages to a TCP Socket
  • Next by Date: Re: get iTunes songs
  • 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