Grand Central Dispatch based Socket framework (work in progress)
GCDNetworking is a framework for MacOS X which uses Grand Central Dispatch to perform usually blocking operations.
For now, the framework is composed by the GCDTcpSocket and GCDTcpServer classes working both, asynchronous and synchronous.
In asynchronous mode you set a delegate and notification will be sent on accepted connections (for server), connection, disconnection, incoming data available, and outgoing data written.
In synchronous mode you have to send a waitFor* message to socket, which waits until the notification or a given timeout.
Features to implement:
* SSL
* UDP
Improvements:
* Memory/CPU usage profiling and improvement
* Review the API.
Licensed under BSD.
Feel free to review/comment/help
Written by Lorenzo Masini
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Osx
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#