Re: Sending an ASCII string to a specific IP address

  • 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 <benbary...>
    > Subject: Sending an ASCII string to a specific IP address
    > To: <cocoa-dev...>
    > Message-ID: <359D57D9-A2BD-468A-BDFB-9C58B7FB1EDC...>
    > 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
  • 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 <benbary...>
    >> Subject: Sending an ASCII string to a specific IP address
    >> To: <cocoa-dev...>
    >> Message-ID: <359D57D9-A2BD-468A-BDFB-9C58B7FB1EDC...>
    >> 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      (<Cocoa-dev...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/cocoa-dev/<d-j-v...>
    >
    > This email sent to <d-j-v...>
  • Ooops, sorry.  This was an old reply sitting in a to-be-sent folder,
    and it got sent when I launch Mail o a machine I haven't used in a
    while.  I didn't mean to send it. Ben, take their advice.

    On Oct 23, 2006, at 5:10 PM, 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 <benbary...>
    >>> Subject: Sending an ASCII string to a specific IP address
    >>> To: <cocoa-dev...>
    >>> Message-ID: <359D57D9-A2BD-468A-BDFB-9C58B7FB1EDC...>
    >>> 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      (<Cocoa-dev...>)
    >> Help/Unsubscribe/Update your Subscription:
    >> http://lists.apple.com/mailman/options/cocoa-dev/d-j-v%
    >> 40earthlink.net
    >>
    >> This email sent to <d-j-v...>
    >
  • 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 <benbary...>
    >>> Subject: Sending an ASCII string to a specific IP address
    >>> To: <cocoa-dev...>
    >>> Message-ID: <359D57D9-A2BD-468A-BDFB-9C58B7FB1EDC...>
    >>> 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      (<Cocoa-dev...>)
    >> Help/Unsubscribe/Update your Subscription:
    >> http://lists.apple.com/mailman/options/cocoa-dev/d-j-v%
    >> 40earthlink.net
    >>
    >> This email sent to <d-j-v...>
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Cocoa-dev mailing list      (<Cocoa-dev...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/cocoa-dev/<chris...>-
    > systems.com
    >
    > This email sent to <chris...>
    >
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today