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/system/Basis/Implementation/Sockets/inet-sock.sig
ViewVC logotype

Annotation of /sml/trunk/src/system/Basis/Implementation/Sockets/inet-sock.sig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (view) (download) (as text)

1 : monnier 416 (* inet-sock.sig
2 :     *
3 :     * COPYRIGHT (c) 1995 AT&T Bell Laboratories.
4 :     *
5 :     *)
6 :    
7 :     local
8 :     structure Socket = SocketImp
9 :     in
10 :     signature INET_SOCK =
11 :     sig
12 :    
13 :     type inet
14 :    
15 :     type 'a sock = (inet, 'a) Socket.sock
16 :     type 'a stream_sock = 'a Socket.stream sock
17 :     type dgram_sock = Socket.dgram sock
18 :    
19 :     type sock_addr = inet Socket.sock_addr
20 :    
21 :     val inetAF : Socket.AF.addr_family (* DARPA internet protocols *)
22 :    
23 :     val toAddr : (NetHostDB.in_addr * int) -> sock_addr
24 :     val fromAddr : sock_addr -> (NetHostDB.in_addr * int)
25 :     val any : int -> sock_addr
26 :    
27 :     structure UDP : sig
28 :     val socket : unit -> dgram_sock
29 :     val socket' : int -> dgram_sock
30 :     end
31 :    
32 :     structure TCP : sig
33 :     val socket : unit -> 'a stream_sock
34 :     val socket' : int -> 'a stream_sock
35 :     (* tcp control options *)
36 :     val getNODELAY : 'a stream_sock -> bool
37 :     val setNODELAY : ('a stream_sock * bool) -> unit
38 :     end
39 :     end
40 :     end
41 :    
42 :    

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