| Standard ML Basis Library |
structure INetSock : INET_SOCK =
struct
structure SOCK = Socket.SOCK
structure UDP =
struct val socket : unit -> dgram_sock val socket' : int -> dgram_sock end
structure TCP =
struct
val socket : unit -> 'a stream_sock
val socket' : int -> 'a stream_sock
val getNODELAY : 'a stream_sock -> bool
val setNODELAY : 'a stream_sock * bool -> unit
end
type 'a sock = (inet, 'a) Socket.sock
type 'a stream_sock = 'a Socket.stream sock
type dgram_sock = Socket.dgram sock
type sock_addr = inet Socket.sock_addr
datatype inet = INET
val sockFn
val inetAF : Socket.AF.addr_family
val toAddr : NetHostDB.in_addr * int -> sock_addr
val fromAddr : sock_addr -> NetHostDB.in_addr * int
val any : int -> sock_addr
end
Type detail |
---|
type 'a sock = (inet, 'a) Socket.sock
type 'a stream_sock = 'a Socket.stream sock
type dgram_sock = Socket.dgram sock
type sock_addr = inet Socket.sock_addr
Datatype detail |
---|
datatype inet = INET
DataConstructor detail |
---|
constructor INET : inet
Value detail |
---|
val sockFn
val inetAF : Socket.AF.addr_family
val toAddr : NetHostDB.in_addr * int -> sock_addr
val fromAddr : sock_addr -> NetHostDB.in_addr * int
| Standard ML Basis Library |
This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.
Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.
Permission is granted for internet users to make one paper copy for their
own personal use. Further hardcopy reproduction is strictly prohibited.
Permission to distribute the HTML document electronically on any medium
other than the internet must be requested from the copyright holders by
contacting the editors.
Printed versions of the SML Basis Manual are available from Cambridge
University Press.
To order, please visit
www.cup.org (North America) or
www.cup.cam.ac.uk (outside North America). |