A few networking code questions

Everything else that doesn't fall into one of the other PB categories.
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

A few networking code questions

Post by Dreglor »

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
~Dreglor