conn-zip.h 958 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * ngIRCd -- The Next Generation IRC Daemon
  3. * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. * Please read the file COPYING, README and AUTHORS for more information.
  10. */
  11. #ifdef ZLIB
  12. #ifndef __conn_zip_h__
  13. #define __conn_zip_h__
  14. /**
  15. * @file
  16. * Connection compression using ZLIB (header)
  17. */
  18. GLOBAL bool Zip_InitConn PARAMS(( CONN_ID Idx ));
  19. GLOBAL bool Zip_Buffer PARAMS(( CONN_ID Idx, const char *Data, size_t Len ));
  20. GLOBAL bool Zip_Flush PARAMS(( CONN_ID Idx ));
  21. GLOBAL bool Unzip_Buffer PARAMS(( CONN_ID Idx ));
  22. GLOBAL long Zip_SendBytes PARAMS(( CONN_ID Idx ));
  23. GLOBAL long Zip_RecvBytes PARAMS(( CONN_ID Idx ));
  24. #endif /* __conn_zip_h__ */
  25. #endif /* ZLIB */
  26. /* -eof- */