summaryrefslogtreecommitdiff
path: root/serv_hash.h
blob: de964a1c17734aafa07d490e8de0ac48b3855fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * addr_hash.h:
 *
 */

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

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "hash.h"

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

hash_type* serv_hash_create(void);
void serv_hash_initialise(hash_type* sh);

#endif /* __SERV_HASH_H_ */