示例#1
0
	def listen(self, protocolFactory):
		"""
		Implement L{IStreamServerEndpoint.listen} to listen on a UNIX socket.
		"""
		return defer.execute(self._reactor.listenUNIX, self._address,
							 protocolFactory,
							 backlog=self._backlog,
							 mode=self._mode,
							 wantPID=self._wantPID)
示例#2
0
	def listen(self, protocolFactory):
		"""
		Implement L{IStreamServerEndpoint.listen} to listen on a TCP socket
		"""
		return defer.execute(self._reactor.listenTCP,
							 self._port,
							 protocolFactory,
							 backlog=self._backlog,
							 interface=self._interface)
示例#3
0
	def listen(self, protocolFactory):
		"""
		Implement L{IStreamServerEndpoint.listen} to listen for SSL on a
		TCP socket.
		"""
		return defer.execute(self._reactor.listenSSL, self._port,
							 protocolFactory,
							 contextFactory=self._sslContextFactory,
							 backlog=self._backlog,
							 interface=self._interface)