Ejemplo n.º 1
0
def RegisterTransferFuncDefault(send_or_receive=None, remote_address=None, callback=None, filename=None, size=None, description=None, transfer_id=None):
    try:
        from transport_control import register_transfer
        return register_transfer('udp', send_or_receive, remote_address, callback, filename, size, description, transfer_id)
    except:
        dhnio.DprintException()
    return None
Ejemplo n.º 2
0
def RegisterTransferFuncDefault(send_or_receive, remote_address, callback, filename, size, description=''):
    try:
        from transport_control import register_transfer
        return register_transfer('cspace', send_or_receive, remote_address, callback, filename, size, description)
    except:
        dhnio.DprintException()
        return None