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
Post a Comment