Last Updated: February 25, 2016
·
2.301K
· rugginoso

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

http://github.com/rugginoso/GCDNetworking