Server/Client using TaskChains and Panda3d Connection Utilites

Just thought I’d share my base network class.

Not a complete implementation but maybe helpful for some people here. Also if anyone has advice or tips, I’m always down.

It’s my first git commit so if there is any trouble getting it going, let me know!

Usage is pretty straight forward. See below.
Callbacks need to be implemented


taskMgr.setupTaskChain('serverChain', numThreads = 1, threadPriority = 1)
self.server = Server(self.port,self.password)
self.taskMgr.add(self.server.listen,'listen',-39,taskChain='serverChain')
self.taskMgr.add(self.server.poll,'poll',-40,taskChain='serverChain')
self.client = Client()
if self.client.connect(self.ip,self.port,self.password):    
            print("connected with id",self.client.id)
            self.taskMgr.add(self.client.poll,'client-poll',-38)