gtk2 sam7fc telemetrie application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
419B

  1. #ifndef _SOCKADDR_H_
  2. #define _SOCKADDR_H_
  3. #include <netinet/in.h>
  4. int parse_sockaddr(const char *addr, struct sockaddr_in *sa);
  5. int parse_subnet(const char *addr, struct in_addr *net, struct in_addr *mask);
  6. int get_sockaddr(char *buf, int size, struct sockaddr_in *addr);
  7. char * get_sockaddr_buf(struct sockaddr_in *addr);
  8. int same_sockaddr(struct sockaddr_in *a, struct sockaddr_in *b);
  9. #endif /* _SOCKADDR_H_ */