• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python netutil.TCPServer类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中tornado.netutil.TCPServer的典型用法代码示例。如果您正苦于以下问题:Python TCPServer类的具体用法?Python TCPServer怎么用?Python TCPServer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了TCPServer类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: __init__

 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)
开发者ID:ghessler,项目名称:dd-agent,代码行数:7,代码来源:graphite.py


示例2: __init__

 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 )
开发者ID:jjmason,项目名称:tornado,代码行数:7,代码来源:httpserver.py


示例3: __init__

 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)
开发者ID:glei,项目名称:datafeed,代码行数:8,代码来源:server.py


示例4: __init__

 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)
开发者ID:raphaelmonrouzeau,项目名称:tornado,代码行数:8,代码来源:httpserver.py


示例5: __init__

    def __init__(self, 
                cert_file, 
                key_file,
                **kwargs):

        TCPServer.__init__(self, 
                    ssl_options={"keyfile": key_file,
                                "certfile": cert_file}, 
                    **kwargs)
开发者ID:Ethan-Zhang,项目名称:TestingServerForAPNs,代码行数:9,代码来源:APNsPushService.py


示例6: __init__

 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")
开发者ID:robert-zaremba,项目名称:tornado-pserver,代码行数:10,代码来源:base.py


示例7: __init__

    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)
开发者ID:Ethan-Zhang,项目名称:TestingServerForAPNs,代码行数:11,代码来源:APNsFeedBackService.py


示例8: __init__

 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)
开发者ID:dnslj,项目名称:python-labs,代码行数:3,代码来源:rproxy.py


示例9: __init__

 def __init__(self, io_loop=None, **kwargs):
     TCPServer.__init__(self, io_loop=io_loop, **kwargs)
开发者ID:kai0200,项目名称:PythonST,代码行数:2,代码来源:tcp_server.py


示例10: __init__

 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)
开发者ID:ptokponnon,项目名称:autonetkit,代码行数:5,代码来源:webserver.py


示例11: __init__

 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)
开发者ID:dccmx,项目名称:sniorfy,代码行数:4,代码来源:stpserver.py


示例12: listen

 def listen(self, port, address=""):
     TCPServer.listen(self, port, address)
     self.onListen(port)
开发者ID:richard-to,项目名称:betelbot,代码行数:3,代码来源:jsonrpc.py


示例13: __init__

 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)
开发者ID:CaptTofu,项目名称:dd-agent,代码行数:5,代码来源:graphite.py


示例14: __init__

 def __init__(self,host='localhost',port=27019,backlog=1024,funcmapping={}):
     TCPServer.__init__(self)
     self.funcmapping = funcmapping
开发者ID:notedit,项目名称:RunRpc,代码行数:3,代码来源:rpcserver.py


示例15: __init__

 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)
开发者ID:richard-to,项目名称:betelbot,代码行数:6,代码来源:jsonrpc.py


示例16: __init__

 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)
开发者ID:Laeeth,项目名称:raspberrypi-utils,代码行数:3,代码来源:gpiodaemon.py


示例17: serve

def serve(addr):
    server = TCPServer()
    server.listen(addr[1], addr[0])
    ioloop.IOLoop.instance().start()
开发者ID:SeasonLee,项目名称:echoserver,代码行数:4,代码来源:server_tornado_iostream.py


示例18: __init__

	def __init__(self):
		TCPServer.__init__(self, io_loop = None, ssl_options = None)
开发者ID:justzx2011,项目名称:PolicyServer,代码行数:2,代码来源:PolicyServer.py


示例19: __init__

 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
开发者ID:richard-to,项目名称:betelbot,代码行数:4,代码来源:robot.py


示例20: __init__

 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
开发者ID:k9yhuang,项目名称:python-labs,代码行数:3,代码来源:portforward.py



注:本文中的tornado.netutil.TCPServer类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python netutil.ThreadedResolver类代码示例发布时间:2022-05-27
下一篇:
Python netutil.Resolver类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap