Re: Sending ASCII Messages to a TCP Socket
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