[go: up one dir, main page]

File: chirp_recursive.h

package info (click to toggle)
cctools 9.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 44,624 kB
  • sloc: ansic: 192,539; python: 20,827; cpp: 20,199; sh: 11,719; perl: 4,106; xml: 3,688; makefile: 1,224
file content (43 lines) | stat: -rw-r--r-- 1,703 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
Copyright (C) 2008- The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/

#ifndef CHIRP_RECURSIVE_H
#define CHIRP_RECURSIVE_H

#include "int_sizes.h"
#include <time.h>

/** @file chirp_recursive.h
A high level interface to put and get large directories trees to and from Chirp servers.
*/

/** Recursively put a file or directory to a Chirp server.
Relies on @ref chirp_reli_putfile and similar calls
to handle a number of failure cases.
@param hostport The host and port of the Chirp server.
@param sourcepath The path to the local file or directory to send.
@param targetpath The name to give the file or directory on the server.
@param stoptime The absolute time at which to abort.
@return On success, returns the sum of file bytes transferred.  On failure, returns less than zero and sets errno appropriately.
*/

INT64_T chirp_recursive_put(const char *hostport, const char *sourcepath, const char *targetpath, time_t stoptime);

/** Recursively get a file or directory from a Chirp server.
Relies on @ref chirp_reli_getfile and similar calls
to handle a number of failure cases.
@param hostport The host and port of the Chirp server.
@param sourcepath The path to the remote file or directory to get.
@param targetpath The name to give the local file or directory.
@param stoptime The absolute time at which to abort.
@return On success, returns the sum of file bytes transferred.  On failure, returns less than zero and sets errno appropriately.
*/

INT64_T chirp_recursive_get(const char *hostport, const char *sourcepath, const char *targetpath, time_t stoptime);

#endif

/* vim: set noexpandtab tabstop=4: */