moonlight-stream / moonlight-common-c

Core implementation of Nvidia's GameStream protocol
GNU General Public License v3.0
448 stars 166 forks source link

Use non-blocking sockets for UDP #15

Closed cgutman closed 6 years ago

cgutman commented 8 years ago

This allows us to remove the need to select() before all packets received. Instead we should be in non-blocking mode and just try recv() first before going to select(). I'll investigate this after work on ENet is done (in case that complicates things).