platformNetwork.h 570 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __platformNetwork__
  2. #define __platformNetwork__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <stdio.h>
  7. #include <string.h>
  8. #include <stdint.h>
  9. #include <stdlib.h>
  10. #include <stddef.h>
  11. #include <errno.h>
  12. #include <sys/types.h>
  13. #include <sys/socket.h>
  14. #include <sys/param.h>
  15. #include <sys/time.h>
  16. #include <sys/select.h>
  17. #include <netinet/in.h>
  18. #include <netinet/tcp.h>
  19. #include <arpa/inet.h>
  20. #include <netdb.h>
  21. #include <unistd.h>
  22. #include <fcntl.h>
  23. #include <signal.h>
  24. typedef struct
  25. {
  26. int socket;
  27. } platformNetwork_t;
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif