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 2 - (view) (download)

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

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