00001 /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- 00002 * 00003 * librsync -- library for network deltas 00004 * $Id: netint.h,v 1.1.1.1 2002/01/25 22:15:09 kergoth Exp $ 00005 * 00006 * Copyright (C) 1999, 2000, 2001 by Martin Pool <mbp@samba.org> 00007 * Copyright (C) 1999 by Andrew Tridgell <tridge@samba.org> 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU Lesser General Public License as published by 00011 * the Free Software Foundation; either version 2.1 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00022 */ 00023 00024 rs_result rs_squirt_byte(rs_job_t *, unsigned char d); 00025 rs_result rs_squirt_netint(rs_job_t *, rs_long_t d, int len); 00026 rs_result rs_squirt_n4(rs_job_t *, int val); 00027 00028 rs_result rs_suck_netint(rs_job_t *, rs_long_t *v, int len); 00029 rs_result rs_suck_byte(rs_job_t *, unsigned char *); 00030 rs_result rs_suck_n4(rs_job_t *, int *); 00031 00032 int rs_int_len(rs_long_t val);
1.4.2