Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
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__
 
def clear
 
def handle
 
def send
 
- Public Member Functions inherited from Messenger
def __init__
 
def __repr__
 
def accept
 
def clear
 
def detailedRepr
 
def find
 
def findAll
 
def getAllAccepting
 
def getEvents
 
def ignore
 
def ignoreAll
 
def isAccepting
 
def isEmpty
 
def isIgnoring
 
def quiet
 
def replaceMethod
 
def send
 
def toggleVerbose
 
def unquiet
 
def unwatch
 
def watch
 
def whoAccepts
 

Public Attributes

 air
 
 channels
 
- Public Attributes inherited from Messenger
 lock
 
 quieting
 

Static Public Attributes

tuple notify = DirectNotifyGlobal.directNotify.newCategory('NetMessenger')
 
- Static Public Attributes inherited from Messenger
tuple notify = DirectNotifyGlobal.directNotify.newCategory("Messenger")
 

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

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

Member Function Documentation

def clear (   self)
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).
def send (   self,
  message,
  sentArgs = [] 
)
Send message to All AI and Uber Dog servers.

Member Data Documentation

air
channels
tuple notify = DirectNotifyGlobal.directNotify.newCategory('NetMessenger')
static