CocoaSocksServer is a project mainly written in OBJECTIVE-C and C, it's free.
A socks server written in objective C using CocoaAsyncSocket.