X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fstream.h;h=eb73dd4715ed02d47cc64ae41f1155ca61aef5f8;hb=34197d9f46a5f4e944378cbb65fca32ee0eec7b9;hp=22538287741829f657c59008a7da1f60c33cc51f;hpb=3ab887b9bc819a846c75dd7f2ee5d41fac22b19f;p=debian%2Famanda diff --git a/common-src/stream.h b/common-src/stream.h index 2253828..eb73dd4 100644 --- a/common-src/stream.h +++ b/common-src/stream.h @@ -25,7 +25,7 @@ * University of Maryland at College Park */ /* - * $Id: stream.h,v 1.4.2.1.4.3 2001/08/14 22:20:57 jrjackson Exp $ + * $Id: stream.h,v 1.12 2006/06/01 14:44:05 martinea Exp $ * * interface to stream module */ @@ -34,24 +34,22 @@ #include "amanda.h" -/* Note: This must be kept in sync with the DATABUF_SIZE defined in - * client-src/sendbackup-krb4.c, or kerberos encryption won't work... - * - Chris Ross (cross@uu.net) 4-Jun-1998 - */ #define NETWORK_BLOCK_BYTES DISK_BLOCK_BYTES #define STREAM_BUFSIZE (NETWORK_BLOCK_BYTES * 2) -int stream_server P((int *port, int sendsize, int recvsize)); -int stream_accept P((int sock, int timeout, int sendsize, int recvsize)); -int stream_client_privileged P((char *hostname, - int port, - int sendsize, - int recvsize, - int *localport)); -int stream_client P((char *hostname, - int port, - int sendsize, - int recvsize, - int *localport)); +int stream_server(in_port_t *port, size_t sendsize, size_t recvsize, int priv); +int stream_accept(int sock, int timeout, size_t sendsize, size_t recvsize); +int stream_client_privileged(const char *hostname, + in_port_t port, + size_t sendsize, + size_t recvsize, + in_port_t *localport, + int nonblock); +int stream_client(const char *hostname, + in_port_t port, + size_t sendsize, + size_t recvsize, + in_port_t *localport, + int nonblock); #endif