Activity Not Available

Project Summary

  Analyzed 7 months ago based on code collected 7 months ago.

CocoaAsyncSocket supports TCP and UDP. The AsyncSocket class is for TCP, and the AsyncUdpSocket class is for UDP. Each class is described below.

AsyncSocket is a TCP/IP socket networking library that wraps CFSocket and CFStream. It offers asynchronous operation, and a native cocoa class complete with delegate support. Here are the key features:

Queued non-blocking reads and writes, with optional timeouts. You tell it what to read or write, and it will call you when it's done. Automatic socket acceptance. If you tell it to accept connections, it will call you with new instances of itself for each connection. You can, of course, disconnect them immediately. Delegate support. Errors, connections, accepts, read completions, write completions, progress, and disconnections all result in a call to your delegate method. Run-loop based, not thread based. Although you can use it on main or worker threads, you don't have to. It calls the delegate methods asynchronously using NSRunLoop. The delegate methods include a socket parameter, allowing you to distinguish between many instances. Self-contained in one class. You don't need to muck around with streams or sockets. The class handles all of that. Support for TCP streams over IPv4 and IPv6. The library is public domain, originally written by Dustin Voss. Now available in a public setting to allow and encourage its continued support.

AsyncUdpSocket is a UDP/IP socket networking library that wraps CFSocket. It works almost exactly like the TCP version, but is designed specifically for UDP. This includes queued non-blocking send/receive operations, full delegate support, run-loop based, self-contained class, and support for IPv4 and IPv6.

Share

In a Nutshell, cocoaasyncsocket...

Languages

XML
70%
Objective-C
28%
3 Other
2%
 
 

Lines of Code

 

Activity

30 Day Summary Sep 15 2012 — Oct 15 2012

12 Month Summary Oct 15 2011 — Oct 15 2012

  • 0 Commits Ohloh must re-analyze this project to display this information.
  • 0 Contributors Ohloh must re-analyze this project to display this information.

Community

Ratings

Be the first to rate this project
 
Click to add your rating
 
Review this Project!
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.