Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
NetMessenger Class Reference
Inheritance diagram for NetMessenger:
Messenger

Public Member Functions

def __init__ (self, air, channels)
 
def clear (self)
 
def handle (self, pickleData)
 
def send (self, message, sentArgs=[])
 
- Public Member Functions inherited from Messenger
def __init__ (self)
 
def __repr__ (self)
 
def accept (self, event, object, method, extraArgs=[], persistent=1)
 
def detailedRepr (self)
 
def find (self, needle)
 
def findAll (self, needle, limit=None)
 
def future (self, event)
 
def getAllAccepting (self, object)
 
def getEvents (self)
 
def ignore (self, event, object)
 
def ignoreAll (self, object)
 
def isAccepting (self, event, object)
 
def isEmpty (self)
 
def isIgnoring (self, event, object)
 
def quiet (self, message)
 
def replaceMethod (self, oldMethod, newFunction)
 
def send (self, event, sentArgs=[], taskChain=None)
 
def toggleVerbose (self)
 
def unquiet (self, message)
 
def unwatch (self, needle)
 
def watch (self, needle)
 
def whoAccepts (self, event)
 

Public Attributes

 air
 
 channels
 
- Public Attributes inherited from Messenger
 lock
 
 quieting
 

Static Public Attributes

 notify = DirectNotifyGlobal.directNotify.newCategory('NetMessenger')
 
- Static Public Attributes inherited from Messenger
def detailed_repr = detailedRepr
 
def find_all = findAll
 
def get_all_accepting = getAllAccepting
 
def get_events = getEvents
 
def ignore_all = ignoreAll
 
def is_accepting = isAccepting
 
def is_empty = isEmpty
 
def is_ignoring = isIgnoring
 
 notify = DirectNotifyGlobal.directNotify.newCategory("Messenger")
 
def replace_method = replaceMethod
 
def toggle_verbose = toggleVerbose
 
def who_accepts = whoAccepts
 

Detailed Description

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).

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ clear()

def clear (   self)
Start fresh with a clear dict

Reimplemented from Messenger.

◆ handle()

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

◆ send()

def send (   self,
  message,
  sentArgs = [] 
)
Send message to All AI and Uber Dog servers.

Member Data Documentation

◆ air

air

◆ channels

channels

◆ notify

notify = DirectNotifyGlobal.directNotify.newCategory('NetMessenger')
static