How to create a simple server with a get handler for Python 3.2?
<p>I can't find on the internet how to create a server with python 3.2. Every example I tried failed so, it's crazy. I have eclipse and python 3 installed...</p>

<p>UPDATE:</p>

<pre><code>    from socketserver import StreamRequestHandler, TCPServer

    class Handler(StreamRequestHandler):    
        def handle(self):
            addr = self.request.getpeername()
            print('Got connection from' + addr)
            self.wfile.write('Thank you for connecting')

    server = TCPServer(('', 9000), Handler)
    server.serve_forever()
</code></pre>
