File: KX_NetworkMessageSensor.py

package info (click to toggle)
blender 2.36-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 34,220 kB
  • ctags: 42,784
  • sloc: ansic: 280,846; cpp: 123,984; python: 18,428; sh: 7,178; makefile: 3,296; perl: 2,082; xml: 484; java: 8
file content (43 lines) | stat: -rw-r--r-- 926 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $Id: KX_NetworkMessageSensor.py,v 1.3 2004/05/31 13:06:04 kester Exp $
# Documentation for KX_NetworkMessageSensor
from SCA_ISensor import *

class KX_NetworkMessageSensor(SCA_ISensor):
	"""
	The Message Sensor logic brick.
	
	Currently only loopback (local) networks are supported.
	"""
	def setSubjectFilterText(subject):
		"""
		Change the message subject text that this sensor is listening to.
		
		@type subject: string
		@param subject: the new message subject to listen for.
		"""
	
	def getFrameMessageCount():
		"""
		Get the number of messages received since the last frame.
		
		@rtype: integer
		"""
	def getBodies():
		"""
		Gets the list of message bodies.
		
		@rtype: list
		"""
	def getSubject():
		"""
		Gets the message subject this sensor is listening for from the Subject: field.
		
		@rtype: string
		"""
	def getSubjects():
		"""
		Gets the list of message subjects received.
		
		@rtype: list
		"""