summaryrefslogtreecommitdiff
path: root/PACE/pace/netinet/in.h
blob: 987a1d822638575b797e29ac999f31c604c96835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* $Id$

 * ============================================================================
 *
 * = LIBRARY
 *    pace
 *
 * = FILENAME
 *    in.h
 *
 * = AUTHOR
 *    Luther Baker
 *
 * ============================================================================ */


#ifndef PACE_NETINET_IN_H
#define PACE_NETINET_IN_H


#include "pace/defines.h"
#include "pace/sys/types.h"


# if defined (PACE_HAS_CPLUSPLUS)
extern "C" {
# endif /* PACE_HAS_CPLUSPLUS */

  PACE_INLINE PACE_UINT32 pace_htonl (PACE_UINT32 hostlong);

  PACE_INLINE PACE_UINT16 pace_htons (PACE_UINT16 hostshort);

  PACE_INLINE PACE_UINT32 pace_ntohl (PACE_UINT32 netlong);

  PACE_INLINE PACE_UINT16 pace_ntohs (PACE_UINT16 netshort);

# if defined (PACE_HAS_CPLUSPLUS)
}
# endif /* PACE_HAS_CPLUSPLUS */

# if defined (PACE_HAS_INLINE)
# include "in.inl"
# endif /* PACE_HAS_INLINE */


#endif /* PACE_NETINET_IN_H */