Blame view

serv_hash.h 378 Bytes
1 2 3 4 5 6 7 8
/*
 * addr_hash.h:
 *
 */

#ifndef __SERV_HASH_H_ /* include guard */
#define __SERV_HASH_H_

pdw committed
9
#include <sys/types.h>
10 11 12 13 14 15 16 17 18 19
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "hash.h"

typedef struct {
    int port;
    int protocol;
} ip_service; 

chris committed
20
hash_type* serv_hash_create(void);
21 22 23
void serv_hash_initialise(hash_type* sh);

#endif /* __SERV_HASH_H_ */