def main():
    args = parser.parse_args()
    
    if args.verbose > 1:
        logging.basicConfig(level=logging.DEBUG)
    elif args.verbose > 0:
        logging.basicConfig(level=logging.INFO)

    server = DAPLinkServer(args.address, 
                           socket=args.socket, 
                           interface=args.interface)
    server.init()
    print 'pyDAPLink server running'

    try:
        if args.temporary:
            while True:
                sleep(5)

                if server.client_count == 0:
                    break
        else:
            while True:
                sleep(60*60)
    except __HOLE__:
        pass
    finally:
        server.uninit()
dataset/ETHPy150Open geky/pyDAPLink/pyDAPLink/tools/pydaplink_server.py/main