Module KX_NetworkMessageSensor
[hide private]
[frames] | no frames]

Source Code for Module KX_NetworkMessageSensor

 1  # $Id: KX_NetworkMessageSensor.py 15444 2008-07-05 17:05:05Z lukep $ 
 2  # Documentation for KX_NetworkMessageSensor 
 3  from SCA_ISensor import * 
 4   
5 -class KX_NetworkMessageSensor(SCA_ISensor):
6 """ 7 The Message Sensor logic brick. 8 9 Currently only loopback (local) networks are supported. 10 """
11 - def setSubjectFilterText(subject):
12 """ 13 Change the message subject text that this sensor is listening to. 14 15 @type subject: string 16 @param subject: the new message subject to listen for. 17 """
18
20 """ 21 Get the number of messages received since the last frame. 22 23 @rtype: integer 24 """
25 - def getBodies():
26 """ 27 Gets the list of message bodies. 28 29 @rtype: list 30 """
31 - def getSubject():
32 """ 33 Gets the message subject this sensor is listening for from the Subject: field. 34 35 @rtype: string 36 """
37 - def getSubjects():
38 """ 39 Gets the list of message subjects received. 40 41 @rtype: list 42 """
43