Preferred Wrapper for TCP Sockets Over Local Network?

  • Hi,

    I'm looking for a Cocoa class to establish a TCP socket with another
    machine on a local network (non-OS X).  I've found Omni Networking,
    AsyncSocket and NetSocket.  I've read conflicting reports of the
    suitability of NSSocketPort for non-DO-related work.  I would like to
    be able to use an SSL certificate, but, beyond that, my needs aren't
    exotic.  Ease-of-use and reliability would be a big plus.  I've also
    considered a Ruby class that would handle the TCP messaging and pass
    responses back to the Cocoa-based app.  Any suggestions?

    Thanks,

    Brad
  • > I would like to be able to use an SSL certificate, but, beyond that,
    > my needs aren't exotic.  Ease-of-use and reliability would be a big
    > plus.  I've also considered a Ruby class that would handle the TCP
    > messaging and pass responses back to the Cocoa-based app.  Any
    > suggestions?

    Maybe the NSStream class is what you're looking for, especially the
    NSOutputStream and NSInputStream classes. There's a sample code called
    Cocoa Echo that shows how to use them. They are really easy to
    implement and they work with SSL, too (although the Cocoa Echo sample
    doesn't cover that).
  • I've used AsyncSocket before but not too extensively.  It seems to
    work just fine and I don't really have any complaints about it.

    Devon

    On 16-Aug-08, at 2:27 PM, Brad Gibbs wrote:

    > Hi,
    >
    > I'm looking for a Cocoa class to establish a TCP socket with another
    > machine on a local network (non-OS X).  I've found Omni Networking,
    > AsyncSocket and NetSocket.  I've read conflicting reports of the
    > suitability of NSSocketPort for non-DO-related work.  I would like
    > to be able to use an SSL certificate, but, beyond that, my needs
    > aren't exotic.  Ease-of-use and reliability would be a big plus.
    > I've also considered a Ruby class that would handle the TCP
    > messaging and pass responses back to the Cocoa-based app.  Any
    > suggestions?
    >
    > Thanks,
    >
    > Brad
previous month august 2008 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