librsync  2.3.1
netint.h
1 /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*-
2  *
3  * librsync -- library for network deltas
4  *
5  * Copyright (C) 1999, 2000, 2001 by Martin Pool <mbp@sourcefrog.net>
6  * Copyright (C) 1999 by Andrew Tridgell <tridge@samba.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */
22 
23 rs_result rs_squirt_byte(rs_job_t *job, rs_byte_t val);
24 rs_result rs_squirt_netint(rs_job_t *job, rs_long_t val, int len);
25 rs_result rs_squirt_n4(rs_job_t *job, int val);
26 
27 rs_result rs_suck_byte(rs_job_t *job, rs_byte_t *val);
28 rs_result rs_suck_netint(rs_job_t *job, rs_long_t *val, int len);
29 rs_result rs_suck_n4(rs_job_t *job, int *val);
30 
31 int rs_int_len(rs_long_t val);
rs_result rs_squirt_byte(rs_job_t *job, rs_byte_t val)
Write a single byte to a stream output.
Definition: netint.c:51
rs_result
Return codes from nonblocking rsync operations.
Definition: librsync.h:180
rs_result rs_squirt_netint(rs_job_t *job, rs_long_t val, int len)
Write a variable-length integer to a stream.
Definition: netint.c:64
The contents of this structure are private.
Definition: job.h:26