Beispiel #1
0
 def __init__(self, request_callback, no_keep_alive=False, io_loop=None,
              xheaders=False, ssl_options=None, **kwargs):
     self.request_callback = request_callback
     self.no_keep_alive = no_keep_alive
     self.xheaders = xheaders
     TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options,
                        **kwargs)
Beispiel #2
0
 def __init__( self, request_callback, no_keep_alive = False, io_loop = None,
              xheaders = False, ssl_options = None, **kwargs ):
     self.request_callback = request_callback
     self.no_keep_alive = no_keep_alive
     self.xheaders = xheaders
     TCPServer.__init__( self, io_loop = io_loop, ssl_options = ssl_options,
                        **kwargs )
Beispiel #3
0
 def __init__(self, app, hostname, io_loop=None, ssl_options=None, **kwargs):
     log.warn('Graphite listener is started -- if you do not need graphite, turn it off in datadog.conf.')
     log.warn('Graphite relay uses pickle to transport messages. Pickle is not secured against remote execution exploits.')
     log.warn('See http://blog.nelhage.com/2011/03/exploiting-pickle/ for more details')
     self.app = app
     self.hostname = hostname
     TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options, **kwargs)
Beispiel #4
0
 def __init__(self, request_callback, io_loop=None, auth_password=None, **kwargs):
     self.request_callback = request_callback
     self.stats = Stats()
     self.auth_password = auth_password
     self.require_auth = False
     if self.auth_password:
         self.require_auth = True
     TCPServer.__init__(self, io_loop=io_loop, **kwargs)
 def __init__(self, request_callback, no_keep_alive=False, io_loop=None,
              xheaders=False, ssl_options=None, **kwargs):
     self.request_callback = request_callback
     self.no_keep_alive = no_keep_alive
     self.xheaders = xheaders
     self._events = dict(connect=None, data=None, end=None)
     TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options,
                        **kwargs)
    def __init__(self, 
                cert_file, 
                key_file,
                **kwargs):

        TCPServer.__init__(self, 
                    ssl_options={"keyfile": key_file,
                                "certfile": cert_file}, 
                    **kwargs)
Beispiel #7
0
 def __init__(self, request_callback, protocol_conn, keep_alive=True, io_loop=None,
              ssl_options=None):
     """Initialize PServer with protocol specified by <protocol_connection>, and
     <request_callback> as na callable to handle requests objects (which is build by protocol_conn)
     """
     self.request_callback = request_callback
     self.protocol_conn = protocol_conn
     self.keep_alive = keep_alive
     TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options)
     logger.debug("PServer initialized")
    def __init__(self, 
                cert_file, 
                key_file,
                data_num, 
                **kwargs):

        self.data_num = data_num
        TCPServer.__init__(self, 
                    ssl_options={"keyfile": key_file,
                                "certfile": cert_file}, 
                    **kwargs)
Beispiel #9
0
 def __init__(self,
              request_callback,
              io_loop=None,
              auth_password=None,
              **kwargs):
     self.request_callback = request_callback
     self.stats = Stats()
     self.auth_password = auth_password
     self.require_auth = False
     if self.auth_password:
         self.require_auth = True
     TCPServer.__init__(self, io_loop=io_loop, **kwargs)
Beispiel #10
0
 def __init__(self,
              app,
              hostname,
              io_loop=None,
              ssl_options=None,
              **kwargs):
     log.info('Graphite listener is started')
     self.app = app
     self.hostname = hostname
     TCPServer.__init__(self,
                        io_loop=io_loop,
                        ssl_options=ssl_options,
                        **kwargs)
Beispiel #11
0
 def __init__(self,
              app,
              hostname,
              io_loop=None,
              ssl_options=None,
              **kwargs):
     log.warn(
         'Graphite listener is started -- if you do not need graphite, turn it off in datadog.conf.'
     )
     log.warn(
         'Graphite relay uses pickle to transport messages. Pickle is not secured against remote execution exploits.'
     )
     log.warn(
         'See http://blog.nelhage.com/2011/03/exploiting-pickle/ for more details'
     )
     self.app = app
     self.hostname = hostname
     TCPServer.__init__(self,
                        io_loop=io_loop,
                        ssl_options=ssl_options,
                        **kwargs)
Beispiel #12
0
def serve(addr):
    server = TCPServer()
    server.listen(addr[1], addr[0])
    ioloop.IOLoop.instance().start()
Beispiel #13
0
 def __init__(self, io_loop=None, ssl_options=None, **kwargs):
     logging.info('a reverse-proxy is started')
     TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options, **kwargs)
Beispiel #14
0
 def __init__(self, io_loop=None, ssl_options=None, ank_accessor = None, **kwargs):
     logging.info('a echo tcp server is started')
     self.event_listeners = set([])
     self.ank_accessor = ank_accessor
     TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options, **kwargs)
Beispiel #15
0
 def __init__(self, io_loop=None, ssl_options=None, **kwargs):
     logging.info('a reverse-proxy is started')
     TCPServer.__init__(self,
                        io_loop=io_loop,
                        ssl_options=ssl_options,
                        **kwargs)
Beispiel #16
0
 def __init__(self, app, hostname, io_loop=None, ssl_options=None, **kwargs):
     log.info('Graphite listener is started')
     self.app = app
     self.hostname = hostname
     TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options, **kwargs)
Beispiel #17
0
 def __init__(self, io_loop=None, ssl_options=None, **kwargs):
     logging.info(BetelbotDriverServer.LOG_SERVER_RUNNING)
     TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options, **kwargs)
     self.connection = None
 def __init__(self, io_loop=None, ssl_options=None, **kwargs):
   logging.info('audio_streams server started')
   TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options, **kwargs)
Beispiel #19
0
 def __init__(self, io_loop=None, **kwargs):
     TCPServer.__init__(self, io_loop=io_loop, **kwargs)
Beispiel #20
0
 def __init__(self, io_loop=None, ssl_options=None, **kwargs):
     logging.info('a echo tcp server is started')
     TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options, **kwargs)
Beispiel #21
0
 def __init__(self, gpio, io_loop=None, ssl_options=None, **kwargs):
     self.GPIO = gpio
     TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options, **kwargs)
Beispiel #22
0
 def __init__(self,host='localhost',port=27019,backlog=1024,funcmapping={}):
     TCPServer.__init__(self)
     self.funcmapping = funcmapping
Beispiel #23
0
 def __init__(self):
     TCPServer.__init__(self, io_loop=None, ssl_options=None)
def serve(addr):
    server = TCPServer()
    server.listen(addr[1], addr[0])
    ioloop.IOLoop.instance().start()
Beispiel #25
0
	def __init__(self):
		TCPServer.__init__(self, io_loop = None, ssl_options = None)
Beispiel #26
0
 def __init__(self, gpio, io_loop=None, ssl_options=None, **kwargs):
     self.GPIO = gpio
     TCPServer.__init__(self,
                        io_loop=io_loop,
                        ssl_options=ssl_options,
                        **kwargs)
Beispiel #27
0
 def __init__(self, io_loop=None, ssl_options=None, **kwargs):
     logging.info('a echo tcp server is started')
     TCPServer.__init__(self,
                        io_loop=io_loop,
                        ssl_options=ssl_options,
                        **kwargs)
Beispiel #28
0
 def __init__(self, connection=JsonRpcConnection, io_loop=None, ssl_options=None, **kwargs):
     TCPServer.__init__(self, io_loop=io_loop, ssl_options=ssl_options)
     defaults = {JsonRpcServer.PARAM_ENCODER: Encoder(), JsonRpcServer.PARAM_IDINCREMENT: IdIncrement()}
     self.data = DictConfig(kwargs, defaults, False)
     self.connection = connection
     self.onInit(**kwargs)
Beispiel #29
0
 def __init__(self, remote_address, io_loop=None, ssl_options=None, **kwargs):
     TCPServer.__init__(self, io_loop, ssl_options, **kwargs)
     self.remote_address = remote_address
Beispiel #30
0
 def listen(self, port, address=""):
     TCPServer.listen(self, port, address)
     self.onListen(port)
Beispiel #31
0
 def __init__(self, request_callback, io_loop=None, application=None, **kwargs):
     self.request_callback = request_callback
     self.application = application
     TCPServer.__init__(self, io_loop=io_loop, **kwargs)