home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 May / APC452.ISO / netkit / xitami / xitami.exe / LRWPLIB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-20  |  1.8 KB  |  65 lines

  1. /************************************************************************
  2.                Copyright (c) 1997 by Total Control Software
  3.                          All Rights Reserved
  4. ------------------------------------------------------------------------
  5.  
  6. Module Name:    lrwplib.h
  7.  
  8. Description:    Small library of routines to assist with the creation
  9.                 of LRWP Peer applications.
  10.  
  11.  
  12. Creation Date:  1/5/98 9:47:17PM
  13.  
  14. # License:      This is free software.  You may use this software for any
  15. #               purpose including modification/redistribution, so long as
  16. #               this header remains intact and that you do not claim any
  17. #               rights of ownership or authorship of this software.  This
  18. #               software has been tested, but no warranty is expressed or
  19. #               implied.
  20.  
  21. ************************************************************************/
  22.  
  23. #ifndef __LRWPLIB_H__
  24. #define __LRWPLIB_H__
  25.  
  26. #include "sfl.h"
  27.  
  28. //---------------------------------------------------------------------------
  29.  
  30.  
  31. typedef struct _LRWP {
  32.     sock_t  sock;
  33.     SYMTAB* cgi;
  34.     char*   post_data;
  35.  
  36.     char*   outbuf;
  37.     size_t  size;
  38.     size_t  allocated;
  39.  
  40. } LRWP;
  41.  
  42.  
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46.  
  47. char* lrwp_connect          (LRWP* lrwp, char* appname, char* host,
  48.                              char* port, char* vhost);
  49. int  lrwp_accept_request    (LRWP* lrwp);
  50. int  lrwp_send_string       (LRWP* lrwp, char* st);
  51. int  lrwp_send_data         (LRWP* lrwp, void* data, size_t len);
  52. int  lrwp_finish_request    (LRWP* lrwp);
  53. int  lrwp_close             (LRWP* lrwp);
  54. void lrwp_cleanup           (LRWP* lrwp);
  55.  
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59.  
  60.  
  61.  
  62. //---------------------------------------------------------------------------
  63. #endif
  64.  
  65.