Looking to create a TCP proxy using the GCDAsyncSocket

96 views
Skip to first unread message

Charlie

unread,
Apr 20, 2012, 9:11:00 AM4/20/12
to CocoaAsyncSocket
I am looking to create a proxy server (TCP server on one side,
accepting connections, and, on connection, connecting to destination
server and streaming the I/O between the two).

Has anyone done anything like this (before I go and re-invent the
wheel)?

I am assuming that I'll have to create a 'proxyConnection' when a I
get a new connection on the server side and associate the two sockets
into one object and then handle the reads and writes between the two
sockets.

Any suggestions and/or warnings before I start down this path?

Thanks,

Charle

Richard Howes

unread,
Apr 20, 2012, 6:03:16 PM4/20/12
to cocoaasy...@googlegroups.com
Yea, take a look at Robbie Hanson's GCDAsyncSockets.  It does everything.


--
You received this message because you are subscribed to the Google Groups "CocoaAsyncSocket" group.
To post to this group, send email to cocoaasy...@googlegroups.com.
To unsubscribe from this group, send email to cocoaasyncsock...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cocoaasyncsocket?hl=en.


Reply all
Reply to author
Forward
0 new messages