Try F#
Snippet
TCP/IP Proxy
A minimal TCP/IP proxy implementation with F# asynchronous workflows
Original:
http://fssnip.net/3t