• 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 an ASCII string to a specific IP address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending an ASCII string to a specific IP address


  • Subject: Re: Sending an ASCII string to a specific IP address
  • From: Chris Suter <email@hidden>
  • Date: Tue, 24 Oct 2006 10:16:40 +1000

The docs. suggest that it can be used for Distributed Objects, but not exclusively and it certainly looks like you could use NSSocketPort for other purposes.

I think what you meant is that NSStream's getStreamsToHost:port:inputStream:outputStream: is an alternative.

- Chris

On 24/10/2006, at 10:10 AM, Dustin Voss wrote:

NSSocketPort is for Distributed Objects. You want NSStream getStreamsToHost:port:inputStream:outputStream:


On 23 Oct 2006, at 8:53 AM, Rudi Sherry wrote:

It's hard to say without knowing what control you have over the other device.

Assuming you know the address and port on the other device, and it is primed to receive connections, you would usually use some sort of sockets. Check out NSSocketPort

<http://developer.apple.com/documentation/Cocoa/Reference/ Foundation/Classes/NSSocketPort_Class/Reference/Reference.html#// apple_ref/occ/cl/NSSocketPort>

HTH,
Rudi


Date: Fri, 13 Oct 2006 09:34:07 -0500
From: Ben Barry <email@hidden>
Subject: Sending an ASCII string to a specific IP address
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I'm new to Cocoa and I am wondering how I would go about sending an
ASCII string to another device via IP. Can someone point me in the
right direction?

Ben

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40earthlink.net


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
systems.com


This email sent to email@hidden


_______________________________________________ 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: 
 >Re: Sending an ASCII string to a specific IP address (From: Rudi Sherry <email@hidden>)
 >Re: Sending an ASCII string to a specific IP address (From: Dustin Voss <email@hidden>)

  • Prev by Date: Re: Sending an ASCII string to a specific IP address
  • Next by Date: Re: Over-released Paragraph Style - Driving Me NUTS!
  • Previous by thread: Re: Sending an ASCII string to a specific IP address
  • Next by thread: KVC Problems with Indexed Accessor for To-Many Properties
  • Index(es):
    • Date
    • Thread