pack the connection inside the HttpContext and turn everything into a Webpart

now you can read and write to the socket from within a Webpart
parse post data before accessing HttpRequest.form