serv_hash.h 378 B

1234567891011121314151617181920212223
  1. /*
  2. * addr_hash.h:
  3. *
  4. */
  5. #ifndef __SERV_HASH_H_ /* include guard */
  6. #define __SERV_HASH_H_
  7. #include <sys/types.h>
  8. #include <sys/socket.h>
  9. #include <netinet/in.h>
  10. #include <arpa/inet.h>
  11. #include "hash.h"
  12. typedef struct {
  13. int port;
  14. int protocol;
  15. } ip_service;
  16. hash_type* serv_hash_create(void);
  17. void serv_hash_initialise(hash_type* sh);
  18. #endif /* __SERV_HASH_H_ */