iphone_Socket

所属分类:iPhone/iOS
开发工具:Objective-C
文件大小:473KB
下载次数:265
上传日期:2012-06-08 00:40:18
上 传 者scutchenxintao
说明:  iOS上进行Socket通信的开源类库,非常有用,简化了socket通信的代码。
(iOS Socket communication on open source library is very useful to simplify the code of the socket communication.)

文件列表:
robbiehanson-CocoaAsyncSocket-fe662b3 (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\CocoaAsyncSocket.podspec (1365, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Documentation.html (1883, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\GCDAsyncSocket.h (41209, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\GCDAsyncSocket.m (184841, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\GCDAsyncUdpSocket.h (28638, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\GCDAsyncUdpSocket.m (121134, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\BonjourClient-Info.plist (1002, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\BonjourClient.xcodeproj (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\BonjourClient.xcodeproj\project.pbxproj (17750, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\BonjourClient.xcodeproj\project.xcworkspace (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\BonjourClient.xcodeproj\project.xcworkspace\contents.xcworkspacedata (158, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\BonjourClientAppDelegate.h (402, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\BonjourClientAppDelegate.m (3598, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\BonjourClient_Prefix.pch (157, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\English.lproj (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\English.lproj\InfoPlist.strings (45, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\English.lproj\MainMenu.xib (179117, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourClient\main.m (249, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\BonjourServer-Info.plist (1002, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\BonjourServer.xcodeproj (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\BonjourServer.xcodeproj\project.pbxproj (17954, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\BonjourServer.xcodeproj\project.xcworkspace (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\BonjourServer.xcodeproj\project.xcworkspace\contents.xcworkspacedata (158, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\BonjourServerAppDelegate.h (313, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\BonjourServerAppDelegate.m (2984, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\BonjourServer_Prefix.pch (157, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\English.lproj (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\English.lproj\InfoPlist.strings (45, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\English.lproj\MainMenu.xib (179117, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\BonjourServer\main.m (249, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\CertTest (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\CertTest\CertTest-Info.plist (1002, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\CertTest\CertTest.xcodeproj (0, 2011-12-05)
robbiehanson-CocoaAsyncSocket-fe662b3\GCD\Xcode\CertTest\CertTest.xcodeproj\project.pbxproj (18200, 2011-12-05)
... ...

CocoaAsyncSocket provides easy-to-use and powerful asynchronous socket libraries for Mac and iOS. The classes are described below. ## TCP **GCDAsyncSocket** and **AsyncSocket** are TCP/IP socket networking libraries. Here are the key features available in both: - Native objective-c, fully self-contained in one class.
_No need to muck around with sockets or streams. This class handles everything for you._ - Full delegate support
_Errors, connections, read completions, write completions, progress, and disconnections all result in a call to your delegate method._ - Queued non-blocking reads and writes, with optional timeouts.
_You tell it what to read or write, and it handles everything for you. Queueing, buffering, and searching for termination sequences within the stream - all handled for you automatically._ - Automatic socket acceptance.
_Spin up a server socket, tell it to accept connections, and it will call you with new instances of itself for each connection._ - Support for TCP streams over IPv4 and IPv6.
_Automatically connect to IPv4 or IPv6 hosts. Automatically accept incoming connections over both IPv4 and IPv6 with a single instance of this class. No more worrying about multiple sockets._ - Support for TLS / SSL
_Secure your socket with ease using just a single method call. Available for both client and server sockets._ **GCDAsyncSocket** is built atop Grand Central Dispatch: - Fully GCD based and Thread-Safe
_It runs entirely within its own GCD dispatch_queue, and is completely thread-safe. Further, the delegate methods are all invoked asynchronously onto a dispatch_queue of your choosing. This means parallel operation of your socket code, and your delegate/processing code._ - The Latest Technology & Performance Optimizations
_Internally the library takes advantage of technologies such as [kqueue's](http://en.wikipedia.org/wiki/Kqueue) to limit [system calls](http://en.wikipedia.org/wiki/System_call) and optimize buffer allocations. In other words, peak performance._ **AsyncSocket** wraps CFSocket and CFStream: - Fully Run-loop based
_Use it on the main thread or a worker thread. It plugs into the NSRunLoop with configurable modes._ ## UDP **GCDAsyncUdpSocket** and **AsyncUdpSocket** are UDP/IP socket networking libraries. Here are the key features available in both: - Native objective-c, fully self-contained in one class.
_No need to muck around with low-level sockets. This class handles everything for you._ - Full delegate support.
_Errors, send completions, receive completions, and disconnections all result in a call to your delegate method._ - Queued non-blocking send and receive operations, with optional timeouts.
_You tell it what to send or receive, and it handles everything for you. Queueing, buffering, waiting and checking errno - all handled for you automatically._ - Support for IPv4 and IPv6.
_Automatically send/recv using IPv4 and/or IPv6. No more worrying about multiple sockets._ **GCDAsyncUdpSocket** is built atop Grand Central Dispatch: - Fully GCD based and Thread-Safe
_It runs entirely within its own GCD dispatch_queue, and is completely thread-safe. Further, the delegate methods are all invoked asynchronously onto a dispatch_queue of your choosing. This means parallel operation of your socket code, and your delegate/processing code._ **AsyncUdpSocket** wraps CFSocket: - Fully Run-loop based
_Use it on the main thread or a worker thread. It plugs into the NSRunLoop with configurable modes._

近期下载者

相关文件


收藏者