direct.distributed.NetMessenger

from direct.distributed.NetMessenger import NetMessenger

Inheritance diagram

Inheritance diagram of direct.distributed.NetMessenger

class NetMessenger(air, channels)[source]

Bases: direct.showbase.Messenger.Messenger

This works very much like the Messenger class except that messages are sent over the network and (possibly) handled (accepted) on a remote machine (server).

__init__(self, air, channels)[source]

air is the AI Repository. channels is a list of channel IDs (uint32 values)

clear(self)[source]
handle(self, pickleData)[source]

Send pickleData from the net on the local netMessenger. The internal data in pickleData should have a tuple of (messageString, sendArgsList).

notify = <direct.directnotify.Notifier.Notifier object>
send(self, message, sentArgs=[])[source]

Send message to All AI and Uber Dog servers.