A few networking code questions
Posted: Mon Jul 28, 2008 4:28 am
I'm working on some back-end code for networking and I'm also using threads to process the outgoing and incoming events and data for each connection and client. It unclear when an network event is cleared, is it when you call NetworkServerEvent()/NetworkClientEvent() or call EventServer()/EventClient() is called or is it when you receive data if thats the case then how would NetworkServerEvent() = #PB_NetworkEvent_Connect be handled?
basically i'm wonder if i can let a network event stay if that particular thread isn't processing that client/connection so the correct thread can handle it
basically i'm wonder if i can let a network event stay if that particular thread isn't processing that client/connection so the correct thread can handle it