summaryrefslogtreecommitdiff
path: root/PACE/pace/posix/in.inl
blob: b80953391a32b25949020843984329b9717161a5 (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
/* $Id$ -*- C -*-

 * =============================================================================
 *
 * = LIBRARY
 *    pace
 *
 * = FILENAME
 *    pace/posix/in.inl
 *
 * = AUTHOR
 *    Luther Baker
 *
 * ============================================================================= */

#include <netinet/in.h>

PACE_INLINE
PACE_UINT32
pace_htonl (PACE_UINT32 hostlong)
{
  return htonl (hostlong);
}

PACE_INLINE
PACE_UINT16
pace_htons (PACE_UINT16 hostshort)
{
  return htons (hostshort);
}

PACE_INLINE
PACE_UINT32
pace_ntohl (PACE_UINT32 netlong)
{
  return ntohl (netlong);
}

PACE_INLINE
PACE_UINT16
pace_ntohs (PACE_UINT16 netshort)
{
  return ntohs (netshort);
}