c++ - Detecting connection requests without looping -


i need implement kind of server first waits users connect. use c++ , sdl_net, , code checks socket activity in loop. problem is consumes lot of cpu performance doing nothing actually, i'm wondering if there's way detect connection request/socket activity event or kind of callback registration? i'm not afraid of winapi solution welcome. thank in advance,

vincent

you can use sdlnet_socketset, create one, check sdlnet_checksockets , sdlnet_socketready


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -