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/eXene/graph-util/xauth-sig.sml
ViewVC logotype

Annotation of /sml/trunk/src/eXene/graph-util/xauth-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (view) (download)

1 : monnier 2 (* xauth-sig.sml
2 :     *
3 :     * Support for X11 authentication.
4 :     *)
5 :    
6 :     signature X_AUTH = sig
7 :    
8 :     (* the different network protocol families *)
9 :     val familyInternet : int
10 :     val familyDECnet : int
11 :     val familyChaos : int
12 :     val familyLocal : int
13 :     val familyWild : int
14 :    
15 :     val authFileName : unit -> string
16 :     (* return the default name of the authentication file (either
17 :     * specified by the XAUTHORITY environment variable, or the
18 :     * file $HOME/.Xauthority. If neither XAUTHORITY or HOME
19 :     * are defined, then ".Xauthority" is returned.
20 :     *)
21 :    
22 :     val getAuthByAddr : {
23 :     family : int, addr : string, dpy : string
24 :     } -> EXeneBase.authentication option
25 :     (* searches the default authentication file for the first entry that
26 :     * matches the family, network address and display number. If no
27 :     * such match is found, then NONE is returned. The * value familyWild
28 :     * matches anything, as do the empty strings when given for addr or dpy.
29 :     *)
30 :    
31 :     val getBestAuthByAddr : {
32 :     family : int, addr : string, dpy : string, authNames : string list
33 :     } -> EXeneBase.authentication option
34 :     (* this similar to getAuthByAddr, except that a list of acceptable
35 :     * authentication methods is specified by the list authNames. It
36 :     * returns the matching authentication info that matches the earliest
37 :     * name on the list. NONE is returned if no match is found.
38 :     *)
39 :    
40 :     val readAuthFile : (EXeneBase.authentication -> bool) -> string
41 :     -> EXeneBase.authentication list
42 :     (* read the specified authentication file and return a list of
43 :     * entries that satisfy the given predicate.
44 :     *)
45 :    
46 :     end;

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