亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? asynrole.py

?? 實(shí)現(xiàn)snmp協(xié)議的agent 和manager
?? PY
字號:
"""   Asynchronous SNMP manager class based on Sam Rushing's asyncore class.   Copyright 1999-2002 by Ilya Etingof <ilya@glas.net>. See LICENSE for   details."""from types import ClassTypeimport sys, asyncorefrom pysnmp.mapping.udp import role, errorfrom pysnmp.error import PySnmpErrorclass Manager(asyncore.dispatcher):    """An asynchronous SNMP manager based on the asyncore.py class.    """    def __init__(self, (cbFun, cbCtx)=(None, None), dstAddr=(None, 0), \                 iface=('0.0.0.0', 0)):        self.cbFun = cbFun; self.cbCtx = cbCtx        asyncore.dispatcher.__init__(self)                self.manager = role.Manager(dstAddr, iface)        self.set_socket(self.manager.open())    def send(self, reqMsg, dstAddr=(None, 0), (cbFun, cbCtx)=(None, None)):        """           send(reqMsg[, dstAddr[, (cbFun, cbCtx)]])                      Send SNMP message (string) to remote server process as specified           on manager object creation or by 'dstAddr' address (given           in socket module notation).           The callback function (as specified on manager object creation)           will be invoked on response arrival or error.        """        if cbFun is not None:            self.cbFun = cbFun        if cbCtx is not None:            self.cbCtx = cbCtx                    self.manager.send(reqMsg, dstAddr)    def handle_read(self):        """Overloaded asyncore method -- read SNMP reply message from           socket.                   This does NOT time out so one needs to implement a mean of           handling timed out requests (see examples/async_snmp.py for           one of possible solutions).        """        (rspMsg, srcAddr) = self.manager.read()        # Pass SNMP response along with references to caller specified data        # and ourselves        self.cbFun(self, self.cbCtx, (rspMsg, srcAddr), (None, None, None))    def writable(self):        """Objects of this class never expect write events        """        return 0    def handle_connect(self):        """Objects of this class never expect connect events        """        pass    def handle_close(self):        """Invoked by asyncore on connection closed event        """        self.manager.close()    def handle_error(self, excType=None, excValue=None, excTraceback=None):        """Invoked by asyncore on any exception        """        # In modern Python distribution, the handle_error() does not receive        # exception details        if excType is None or excValue is None or excTraceback is None:            excType, excValue, excTraceback = sys.exc_info()                    # In case of PySNMP exception, invoke the callback function        # and pass it an empty result. Otherwise,just pass the exception on.        if type(excType) == ClassType and \           issubclass(excType, PySnmpError):            self.cbFun(self, self.cbCtx,\                        (None, None), (excType, excValue, excTraceback))        else:            raise# Compatibility aliasmanager = Manager    class Agent(asyncore.dispatcher):    """An asynchronous SNMP agent based on the asyncore.py class.       Wait for and receive SNMP request messages, send SNMP response       messages asynchronously.    """    def __init__(self, (cbFun, cbCtx), ifaces=[('0.0.0.0', 161)]):        # Make sure we get the callback function        if not callable(cbFun):            raise error.BadArgumentError('Non-callable callback function')        self.cbFun = cbFun; self.cbCtx = cbCtx        asyncore.dispatcher.__init__(self)        self.agent = role.Agent((None, None), ifaces)        self.set_socket(self.agent.open())    def send(self, rspMsg, dstAddr):        """           send(rspMsg, dstAddr)                      Send SNMP message (string) to remote SNMP process by 'dstAddr' address           (given in socket module notation).        """        self.agent.send(rspMsg, dstAddr)    def handle_read(self):        """Overloaded asyncore method -- read SNMP message from socket.           This does NOT time out so one needs to implement a mean of           handling timed out requests (perhaps it's worth looking at           medusa/event_loop.py for an interesting approach).        """        reqMsg, srcAddr = self.agent.read()        # Pass SNMP request along with references to caller specified data        # and ourselves        self.cbFun(self, self.cbCtx, (reqMsg, srcAddr), (None, None, None))    def writable(self):        """Objects of this class never expect write events        """        return 0    def handle_connect(self):        """Objects of this class never expect connect events        """        pass    def handle_close(self):        """Invoked by asyncore on connection closed event        """        self.agent.close()    def handle_error(self, excType=None, excValue=None, excTraceback=None):        """Invoked by asyncore on any exception        """        # In modern Python distribution, the handle_error() does not receive        # exception details        if excType is None or excValue is None or excTraceback is None:            excType, excValue, excTraceback = sys.exc_info()        # In case of PySNMP exception, invoke the callback function        # and pass it an empty result. Otherwise,just pass the exception on.        if type(excType) == ClassType \           and issubclass(excType, PySnmpError):            self.cbFun(self, self.cbCtx,                        (None, None), (excType, excValue, excTraceback))        else:                raise# Compatibility aliasagent = Agent

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲aⅴ怡春院| 一区二区三区不卡视频在线观看| 91免费在线看| 视频一区在线播放| 欧美一区中文字幕| 欧美午夜精品久久久久久超碰| 成人三级在线视频| av一区二区三区| 97精品久久久午夜一区二区三区| 成人午夜在线免费| 日韩精品在线网站| 久久久噜噜噜久久人人看| 精品久久久久久无| 国产午夜精品一区二区三区嫩草| www国产成人| 国产精品乱码久久久久久| 日韩一区欧美小说| 亚洲高清不卡在线观看| 日本亚洲一区二区| 国产精品自拍一区| 久久99精品国产.久久久久| 国产91精品免费| 成人黄色小视频在线观看| 日韩欧美不卡在线观看视频| 色综合久久九月婷婷色综合| 亚洲三级免费观看| 欧美日韩激情一区| 韩国欧美国产一区| 国产精品素人一区二区| 亚洲国产日韩av| 国产欧美日韩亚州综合| 777午夜精品视频在线播放| 日韩一区二区麻豆国产| 欧美精彩视频一区二区三区| 久久草av在线| 成人丝袜高跟foot| 国产日韩欧美电影| 成人少妇影院yyyy| 国产精品久久久久久久久免费丝袜 | 亚洲第一会所有码转帖| 91精品91久久久中77777| 欧美一区二区视频在线观看2022 | 亚洲一区在线观看免费 | 亚洲电影在线播放| 欧美日韩国产经典色站一区二区三区 | 国产91精品一区二区麻豆亚洲| 久久婷婷久久一区二区三区| 国产麻豆9l精品三级站| 欧美三级在线播放| 国产精品不卡在线| 欧美在线观看一二区| 久久久九九九九| 不卡一卡二卡三乱码免费网站| 中文字幕在线播放不卡一区| 在线观看亚洲专区| 青青草97国产精品免费观看无弹窗版| 成人黄色片在线观看| 亚洲综合网站在线观看| 日韩欧美一区在线| 成人动漫在线一区| 亚洲无线码一区二区三区| 制服丝袜在线91| 成人网男人的天堂| 成人不卡免费av| 亚洲午夜羞羞片| 久久久无码精品亚洲日韩按摩| 99久久精品久久久久久清纯| 亚洲一区二区三区视频在线播放| 欧美大肚乱孕交hd孕妇| 国产a精品视频| 一区二区三区成人| 国产乱子伦视频一区二区三区| 欧美精品123区| 国产精品第四页| 制服丝袜在线91| 成人av资源在线观看| 视频一区国产视频| 中文字幕中文字幕一区二区 | 国产精品午夜电影| 欧美日韩免费不卡视频一区二区三区| 国内久久精品视频| 午夜私人影院久久久久| 欧美人与z0zoxxxx视频| 国产高清精品久久久久| 久久久不卡影院| 欧美日韩久久久一区| 成人av小说网| 久久99精品国产| 日日嗨av一区二区三区四区| 国产精品国产三级国产普通话三级 | 久久不见久久见中文字幕免费| 91精品福利视频| 亚洲一区在线视频| 一区二区三区波多野结衣在线观看 | 91免费版pro下载短视频| 蜜臀久久久99精品久久久久久| 成人午夜在线免费| 久久99最新地址| 日韩精品亚洲一区| 一区二区三区日韩欧美精品| 国产精品视频九色porn| 2023国产一二三区日本精品2022| 91精品国产综合久久久久久久久久| 91视频观看视频| www.av亚洲| 成人理论电影网| 成人天堂资源www在线| 国产一级精品在线| 激情欧美日韩一区二区| 欧美一区二区三区免费大片| 久久综合五月天婷婷伊人| 国产成人免费在线观看不卡| 97se亚洲国产综合自在线| 国产在线播放一区三区四| 久久草av在线| 久88久久88久久久| 极品美女销魂一区二区三区| 久久99久国产精品黄毛片色诱| 日本欧美肥老太交大片| 免费成人在线观看| 麻豆精品在线观看| 韩国欧美一区二区| 大桥未久av一区二区三区中文| 成人午夜精品在线| 99视频在线精品| 日本道色综合久久| 欧美伦理电影网| 欧美一区二区三区的| wwwwww.欧美系列| 中文无字幕一区二区三区| 欧美亚洲国产bt| 欧美日韩成人综合| 欧美xxxxx裸体时装秀| 久久久久久久久伊人| 国产精品每日更新在线播放网址| 国产精品电影一区二区| 亚洲福利视频一区| 久久国产婷婷国产香蕉| 国产成人精品影视| 91丨porny丨户外露出| 欧美精选在线播放| 久久精品亚洲乱码伦伦中文| 一区在线播放视频| 首页国产欧美日韩丝袜| 国产精品一二一区| 欧美性videosxxxxx| 日韩欧美一二三区| 亚洲少妇中出一区| 99久久精品免费看国产| 日韩在线a电影| 亚洲成人在线免费| 国产成人免费视频一区| 欧美综合久久久| 欧美精品一区二区三区四区| 51精品视频一区二区三区| 久久久影视传媒| 亚洲欧美福利一区二区| 国产精品久久精品日日| 午夜精品123| 不卡av免费在线观看| 欧美一区二区视频在线观看2022| 国产精品乱码人人做人人爱 | 久久综合九色综合欧美亚洲| 亚洲欧洲韩国日本视频| 免费av网站大全久久| 97久久精品人人澡人人爽| 精品国产一二三| 午夜一区二区三区在线观看| 国产宾馆实践打屁股91| 日韩欧美综合一区| 亚洲综合色丁香婷婷六月图片| 国产精品一区二区三区99| 6080亚洲精品一区二区| 亚洲另类在线视频| 国产成人在线观看免费网站| 欧美三级中文字| 国产精品的网站| 国产成人精品亚洲午夜麻豆| 91 com成人网| 亚洲一区二区免费视频| 成a人片国产精品| 国产欧美一区二区在线| 久久99精品久久只有精品| 欧美三级韩国三级日本一级| 日韩理论片中文av| 成人综合婷婷国产精品久久| 欧美大尺度电影在线| 青青青爽久久午夜综合久久午夜| 91成人在线免费观看| 亚洲日本青草视频在线怡红院| 国产成人免费视| 久久综合狠狠综合久久综合88| 美女视频黄久久| 日韩一级二级三级精品视频| 亚洲va欧美va人人爽| 欧洲另类一二三四区| 亚洲一区二区三区精品在线| 色老汉一区二区三区| 亚洲精选在线视频| 在线视频一区二区免费|