pipeTestServiceClient.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:remoteControlPPT 作者: htwenning 项目源码 文件源码
def CallPipe(fn, args):
    ret = None
    retryCount = 0
    while retryCount < 8:   # Keep looping until user cancels.
        retryCount = retryCount + 1
        try:
            return fn(*args)
        except win32api.error, exc:
            if exc.winerror==winerror.ERROR_PIPE_BUSY:
                win32api.Sleep(5000)
                continue
            else:
                raise

    raise RuntimeError("Could not make a connection to the server")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号