\doxysubsection{netint.\+h}
\label{netint_8h_source}\index{netint.h@{netint.h}}
\mbox{\hyperlink{netint_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001 \textcolor{comment}{/*= -\/*-\/ c-\/basic-\/offset: 4; indent-\/tabs-\/mode: nil; -\/*-\/}}
\DoxyCodeLine{00002 \textcolor{comment}{ *}}
\DoxyCodeLine{00003 \textcolor{comment}{ * librsync -\/-\/ library for network deltas}}
\DoxyCodeLine{00004 \textcolor{comment}{ *}}
\DoxyCodeLine{00005 \textcolor{comment}{ * Copyright (C) 1999, 2000, 2001 by Martin Pool <mbp@sourcefrog.net>}}
\DoxyCodeLine{00006 \textcolor{comment}{ * Copyright (C) 1999 by Andrew Tridgell <tridge@samba.org>}}
\DoxyCodeLine{00007 \textcolor{comment}{ *}}
\DoxyCodeLine{00008 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}}
\DoxyCodeLine{00009 \textcolor{comment}{ * it under the terms of the GNU Lesser General Public License as published by}}
\DoxyCodeLine{00010 \textcolor{comment}{ * the Free Software Foundation; either version 2.1 of the License, or}}
\DoxyCodeLine{00011 \textcolor{comment}{ * (at your option) any later version.}}
\DoxyCodeLine{00012 \textcolor{comment}{ *}}
\DoxyCodeLine{00013 \textcolor{comment}{ * This program is distributed in the hope that it will be useful,}}
\DoxyCodeLine{00014 \textcolor{comment}{ * but WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{00015 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the}}
\DoxyCodeLine{00016 \textcolor{comment}{ * GNU Lesser General Public License for more details.}}
\DoxyCodeLine{00017 \textcolor{comment}{ *}}
\DoxyCodeLine{00018 \textcolor{comment}{ * You should have received a copy of the GNU Lesser General Public License}}
\DoxyCodeLine{00019 \textcolor{comment}{ * along with this program; if not, write to the Free Software}}
\DoxyCodeLine{00020 \textcolor{comment}{ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.}}
\DoxyCodeLine{00021 \textcolor{comment}{ */}}
\DoxyCodeLine{00022 \textcolor{comment}{}}
\DoxyCodeLine{00023 \textcolor{comment}{/** \(\backslash\)file netint.h}}
\DoxyCodeLine{00024 \textcolor{comment}{ * Network-\/byte-\/order output to the tube.}}
\DoxyCodeLine{00025 \textcolor{comment}{ *}}
\DoxyCodeLine{00026 \textcolor{comment}{ * All the `suck' routines return a result code. The most common values are}}
\DoxyCodeLine{00027 \textcolor{comment}{ * RS\_DONE if they have enough data, or RS\_BLOCKED if there is not enough input}}
\DoxyCodeLine{00028 \textcolor{comment}{ * to proceed.}}
\DoxyCodeLine{00029 \textcolor{comment}{ *}}
\DoxyCodeLine{00030 \textcolor{comment}{ * The `squirt` routines also return a result code which in theory could be}}
\DoxyCodeLine{00031 \textcolor{comment}{ * RS\_BLOCKED if there is not enough output space to proceed, but in practice}}
\DoxyCodeLine{00032 \textcolor{comment}{ * is always RS\_DONE. */}}
\DoxyCodeLine{00033 \textcolor{preprocessor}{\#ifndef NETINT\_H}}
\DoxyCodeLine{00034 \textcolor{preprocessor}{\#  define NETINT\_H}}
\DoxyCodeLine{00035 }
\DoxyCodeLine{00036 \textcolor{preprocessor}{\#  include "{}librsync.h"{}}}
\DoxyCodeLine{00037 \textcolor{comment}{}}
\DoxyCodeLine{00038 \textcolor{comment}{/** Write a single byte to a stream output. */}}
\DoxyCodeLine{00039 rs\_result rs\_squirt\_byte(rs\_job\_t *job, rs\_byte\_t val);}
\DoxyCodeLine{00040 \textcolor{comment}{}}
\DoxyCodeLine{00041 \textcolor{comment}{/** Write a variable-\/length integer to a stream.}}
\DoxyCodeLine{00042 \textcolor{comment}{ *}}
\DoxyCodeLine{00043 \textcolor{comment}{ * \(\backslash\)param job -\/ Job of data.}}
\DoxyCodeLine{00044 \textcolor{comment}{ *}}
\DoxyCodeLine{00045 \textcolor{comment}{ * \(\backslash\)param val -\/ Value to write out.}}
\DoxyCodeLine{00046 \textcolor{comment}{ *}}
\DoxyCodeLine{00047 \textcolor{comment}{ * \(\backslash\)param len -\/ Length of integer, in bytes. */}}
\DoxyCodeLine{00048 rs\_result rs\_squirt\_netint(rs\_job\_t *job, rs\_long\_t val, \textcolor{keywordtype}{int} len);}
\DoxyCodeLine{00049 }
\DoxyCodeLine{00050 rs\_result rs\_squirt\_n4(rs\_job\_t *job, \textcolor{keywordtype}{int} val);}
\DoxyCodeLine{00051 }
\DoxyCodeLine{00052 rs\_result rs\_suck\_byte(rs\_job\_t *job, rs\_byte\_t *val);}
\DoxyCodeLine{00053 }
\DoxyCodeLine{00054 rs\_result rs\_suck\_netint(rs\_job\_t *job, rs\_long\_t *val, \textcolor{keywordtype}{int} len);}
\DoxyCodeLine{00055 }
\DoxyCodeLine{00056 rs\_result rs\_suck\_n4(rs\_job\_t *job, \textcolor{keywordtype}{int} *val);}
\DoxyCodeLine{00057 }
\DoxyCodeLine{00058 \textcolor{keywordtype}{int} rs\_int\_len(rs\_long\_t val);}
\DoxyCodeLine{00059 }
\DoxyCodeLine{00060 \textcolor{preprocessor}{\#endif                          }\textcolor{comment}{/* !NETINT\_H */}\textcolor{preprocessor}{}}

\end{DoxyCode}
