예제 #1
0
	def __init__(self):
		CC_Server.__init__(self)
		self.HTTPServ.mimeTypes["ttf"] = "application/octet-stream"
		self.HTTPServ.mimeTypes["woff"] = "application/octet-stream"
		self.HTTPServ.mimeTypes["woff2"] = "application/octet-stream"
		self.HTTPServ.mimeTypes["svg"] = "application/octet-stream"
		self.HTTPServ.mimeTypes["eot"] = "application/octet-stream"
		self.HTTPServ.mimeTypes["otf"] = "application/octet-stream"
		self.HTTPServ.redirects["/"] = "CursiveClient.html"
예제 #2
0
	def __init__(self):
		CC_Server.__init__(self)
		skypePrefs = {
			"room_id": '#mattwitkowski/$cbd88fa129f3d1f0', \
		}
		self.prefs.update(skypePrefs)
		self.skype = Skype4Py.Skype(Events=self)
		for chat in self.skype.Chats:
			if(chat.Name == self.prefs["room_id"]):
				self.chat = chat
		log(self, "listening to %s" % self.prefs["room_id"])
예제 #3
0
	def __init__(self):
		CC_Server.__init__(self)
		self.tileGrid = list()
		self.imageList = list()
		self.HTTPServ.redirects['/'] = "TIAClient.html"
		self.HTTPServ.isAuthorized = self.connections.checkAuthKey
		self.HTTPServ.fileUploaded = self.addNewTile
		tiaPrefs = { \
			"grid_filename": "tileGrid.dat", \
			"tile_filename": "tileImages.dat", \
			"pos_filename": "/dev/null", \
		}
		self.prefs.update(tiaPrefs)
예제 #4
0
	def __init__(self):
		CC_Server.__init__(self)
		relayPrefs = { \
			"relay_port": 1813, \
			"relay_addr": "cho.cyan.com", \
			"shadow_users": 0, \
		}
		self.prefs.update(relayPrefs)
		self.shadowUserList = list()
		self.shadowListLock = threading.Lock()
		# bouncer feature - always on in case of config change
		bouncerPingThread = threading.Thread(None, self.bouncerPingLoop, "bouncerPingLoop", ())
		bouncerPingThread.setDaemon(1)
		bouncerPingThread.start()