title: Python asyncore UDP server
body: <p>I am writing server application in Python that listens for requests, processes them, and sends a response.</p>
  
  <p>All req/resp are send from the same address and port to the server application. I need to recv/send messages simultaneously, and the server need to recieve/send messages from/to the same port and address. I found some tutorials for asynchore sockets, but there are only examples for TCP connections.</p>
  
  <p>Unfortunately, I need UDP. When I change <code>SOCK_STREAM</code> to <code>SOCK_DGRAM</code> in the create method, I get an error.</p>
  
  <pre><code>return getattr(self._sock,name)(*args)
  socket.error: [Errno 95] Operation not supported
  </code></pre>
  
  <p>I tried to use twisted, but I dont know how to write the sender part, which can bind to the same port as its listening. The last result was blocked port.</p>
  
  <p>Is there any way how to use asyncore sockets with UDP or how to use twisted to send from the same port? Some examples will be higly appreciated.</p>