Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/cml/src/Sockets/generic-sock-sig.sml
ViewVC logotype

Annotation of /sml/trunk/src/cml/src/Sockets/generic-sock-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 844 - (view) (download)

1 : monnier 2 (* generic-sock-sig.sml
2 :     *
3 :     * COPYRIGHT (c) 1995 AT&T Bell Laboratories.
4 :     *
5 :     * $Log$
6 : blume 844 * Revision 1.3 2001/06/20 20:39:14 blume
7 :     * CML compiles and works again
8 : monnier 2 *
9 : blume 844 * Revision 1.2.4.1 2001/06/20 17:54:59 blume
10 :     * CML now compiles under old and new CM
11 : monnier 651 *
12 : monnier 2 * Revision 1.2 1996/06/03 21:11:42 jhr
13 :     * Sockets API cleanup.
14 :     *
15 :     * Revision 1.1.1.1 1996/01/31 16:02:36 george
16 :     * Version 109
17 :     *
18 :     *)
19 :    
20 :     signature GENERIC_SOCK =
21 :     sig
22 :     val addressFamilies : unit -> Socket.AF.addr_family list
23 :     (* returns a list of the supported address families; this should include
24 :     * at least: Socket.AF.inet.
25 :     *)
26 :    
27 :     val socketTypes : unit -> Socket.SOCK.sock_type
28 :     (* returns a list of the supported socket types; this should include at
29 :     * least: Socket.SOCK.stream and Socket.SOCK.dgram.
30 :     *)
31 :    
32 :     (* create sockets using default protocol *)
33 :     val socket : (Socket.AF.addr_family * Socket.SOCK.sock_type)
34 :     -> ('a, 'b) Socket.sock
35 :     val socketPair : (Socket.AF.addr_family * Socket.SOCK.sock_type)
36 :     -> (('a, 'b) Socket.sock * ('a, 'b) Socket.sock)
37 :    
38 :     (* create sockets using the specified protocol *)
39 :     val socket' : (Socket.AF.addr_family * Socket.SOCK.sock_type * int)
40 :     -> ('a, 'b) Socket.sock
41 :     val socketPair' : (Socket.AF.addr_family * Socket.SOCK.sock_type * int)
42 :     -> (('a, 'b) Socket.sock * ('a, 'b) Socket.sock)
43 :    
44 :     end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0