librsync
2.0.2
|
Network-byte-order output to the tube. More...
Go to the source code of this file.
Macros | |
#define | RS_MAX_INT_BYTES 8 |
Functions | |
rs_result | rs_squirt_byte (rs_job_t *job, unsigned char d) |
Write a single byte to a stream output. More... | |
rs_result | rs_squirt_netint (rs_job_t *job, rs_long_t d, int len) |
Write a variable-length integer to a stream. More... | |
rs_result | rs_squirt_n4 (rs_job_t *job, int val) |
rs_result | rs_suck_netint (rs_job_t *job, rs_long_t *v, int len) |
rs_result | rs_suck_byte (rs_job_t *job, unsigned char *v) |
rs_result | rs_suck_n4 (rs_job_t *job, int *v) |
int | rs_int_len (rs_long_t val) |
Network-byte-order output to the tube.
All the `suck' routines return a result code. The most common values are RS_DONE if they have enough data, or RS_BLOCKED if there is not enough input to proceed.
All the netint operations are done in a fairly simpleminded way, since we don't want to rely on stdint types that may not be available on some platforms.
Definition in file netint.c.