RE: [Plib-devel] Re: KobayashiMaru & plib
Brought to you by:
sjbaker
From: Ben W. <be...@bg...> - 2000-08-21 17:29:15
|
Hello I am also working on some networking code for plib, a tcp and a udp section, perhaps we can work together on it. It's not portable to mac yet and there are definately some places that have to be worked on but hey if your interested let me know. Later Ben I'm currently in the process of taking the network code from this and rewriting it into a separate generic library (something I should had done from the start, but hey, we live and learn). The network library (to my surprise), is turning out to be quite powerful :) . From an API point of view you can just subclass new objects from the base one provided, and effectively do: STNetworkObj *obj = new STNetworkObj ; obj -> SetPos ( blah ) ; NetworkEnv::AddNewObj ( obj ) ; ( Obviously it's a bit more complex than that. In actuallality your subclassed objects have to specify which of their data-variables are to be transmitted over the network, what accuracy they require (this can be range based) etc. Objects can also be placed in classes and assigned relative strengths. For example, you might have a scanning class - into which you can place scanners and jammers. The network engine works out what information the client *should* know about and transmit only that). The network library shields all the nasty dead-reckoning, time-sync, latency and path extropolation problems at it's highest level. |