Object Oriented Networking Code with Panda3D Foundation

A small change to Server.py
This sends a packet back to the sender with the word got added. I made it to show how you can tell who send the info.

    def getData(self):
        data = []
        while self.cReader.dataAvailable():
            datagram = NetDatagram()  # catch the incoming data in this instance
            # Check the return value; if we were threaded, someone else could have
            # snagged this data before we did
            if self.cReader.getData(datagram):
                con = PointerToConnection()
                con = datagram.getConnection()
                datum=self.processData(datagram)
                me = {}
                me["test"] = "got" + datum["test"]
                self.sendData(me, con)
                data.append(datum)
        return data