Import Upstream version 20180207
[hcoop/debian/mlton.git] / basis-library / net / net.sig
1 (* Copyright (C) 2002-2008 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 *
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
6 *)
7
8 signature NET =
9 sig
10 structure AddrFamily : ABS_REP_EQ where type Rep.t = C_Int.t
11 structure Sock : ABS_REP where type Rep.t = C_Sock.t
12 structure SockType : ABS_REP_EQ where type Rep.t = C_Sock.t
13
14 structure Word16 :
15 sig
16 val hton: Word16.word -> Word16.word
17 val ntoh: Word16.word -> Word16.word
18 end
19 structure C_Int :
20 sig
21 val hton: C_Int.t -> C_Int.t
22 val ntoh: C_Int.t -> C_Int.t
23 end
24 end