title: Lua sockets - Asynchronous Events
body: <p>In current lua sockets implementation, I see that we have to install a timer that calls back periodically so that we check in a non blocking API to see if we have received anything.</p>
  
  <p>This is all good and well however in UDP case, if the sender has a lot of info being sent, do we risk loosing the data. Say another device sends a 2MB photo via UDP and we check socket receive every 100msec. At 2MBps, the underlying system must store 200Kbits before our call queries the underlying TCP stack. </p>
  
  <p>Is there a way to get an event fired when we receive the data on the particular socket instead of the polling we have to do now?</p>