/FallingSandpaper/jni/server.h

http://thelements.googlecode.com/ · C Header · 31 lines · 15 code · 5 blank · 11 comment · 0 complexity · 2cb3f23e63eb78ec51c13f61f72f59df MD5 · raw file

  1. /*
  2. * server.h
  3. * --------------------------
  4. * Declares functions for building the buffer,
  5. * sending it to the server, and receiving and
  6. * storing the return data.
  7. */
  8. #ifndef SERVER_H_INCLUDED
  9. #define SERVER_H_INCLUDED
  10. #define SERVER_IP "71.244.112.67"
  11. #define PORTNUM 2000
  12. //Include the global variables
  13. #include "app.h"
  14. //Include the global macros
  15. #include "macros.h"
  16. //Socket includes
  17. #include <sys/types.h>
  18. #include <sys/socket.h>
  19. #include <netinet/in.h>
  20. #include <netdb.h>
  21. //For bcopy and bzero
  22. #include <strings.h>
  23. void adduserpass(void);
  24. void buildbuffer(int type);
  25. int sendbuffer(void);
  26. #endif