extreme.h 772 B

12345678910111213141516171819202122232425262728
  1. /*******************************************
  2. * mikelib v0.1 *
  3. * *
  4. * This is a library with a bunch *
  5. * of usefull functions *
  6. * *
  7. * *
  8. *******************************************/
  9. #include <errno.h>
  10. #include <netdb.h>
  11. #include <netinet/in.h>
  12. #include <stdarg.h>
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include <string.h>
  16. #include <sys/socket.h>
  17. #include <sys/types.h>
  18. #define BUFLEN 100
  19. #define MAX_SECTIONS 100
  20. char **strparse(char *string, const char *delim, int *numsecs);
  21. int esock_new(char *ip, int port);
  22. char *esock_read(int sockfd);
  23. int esock_write(int sockfd, char *buf);