home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gwm18a.zip / spy.h < prev    next >
C/C++ Source or Header  |  1995-07-03  |  661b  |  31 lines

  1. /*
  2.  *
  3.  * $Id: gwm.shar,v 1.107 1995/07/03 09:24:22 colas Exp $
  4.  */
  5.  
  6. #include <stdio.h>
  7. #include <sys/types.h>
  8. #include <sys/socket.h>
  9. #include <fcntl.h>        /* F_SETFL and likes */
  10. #include <netinet/in.h>   /* sockaddr_in */
  11. #include <netdb.h>        /* getservbyname() */
  12.  
  13.  
  14. #define SPY_PORT 13667
  15. /*
  16. #define SPY_PORT 13400
  17. */
  18. #define SPY_HOST "indri.inria.fr"
  19.  
  20. #define    SPY_PACKET_SIZE 1000
  21. #define SPY_MAGIC_NUMBER (char) 0xf0
  22.  
  23. #ifdef __STDC__
  24. int
  25. KoalaSpy_SendPacket(char *host, /* 0 -> SPY_HOST */
  26.             int port,   /* 0 -> SPY_PORT */
  27.             char *progName,   /* defines the log file */
  28.             char *origin,    /* 0 -> hostname */
  29.             char *msg);
  30. #endif
  31.