Panda3D
Public Member Functions | Public Attributes | Static Public Attributes

NetMessenger Class Reference

Inherits direct::showbase::Messenger::Messenger.

List of all members.

Public Member Functions

def __init__
def clear
def handle
def send

Public Attributes

 air
 channels

Static Public Attributes

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

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
tuple notify = DirectNotifyGlobal.directNotify.newCategory('NetMessenger') [static]
 All Classes Namespaces Functions Variables Properties