| Standard ML Basis Library |
structure PreSock =
struct
type addr = Word8Vector.vector
type af = CInterface.system_const
type socket = int
datatype in_addr = INADDR of addr
datatype addr_family = AF of af
datatype sock_type = SOCKTY of CInterface.system_const
datatype ('sock, 'af) sock = SOCK of socket
datatype 'af sock_addr = ADDR of addr
val toWords
val fromBytes
end
Type detail |
---|
type addr = Word8Vector.vector
type af = CInterface.system_const
type socket = int
Datatype detail |
---|
datatype in_addr = INADDR of addr
datatype addr_family = AF of af
datatype sock_type = SOCKTY of CInterface.system_const
datatype ('sock, 'af) sock = SOCK of socket
datatype 'af sock_addr = ADDR of addr
DataConstructor detail |
---|
constructor INADDR : addr -> in_addr
constructor AF : af -> addr_family
constructor SOCKTY : CInterface.system_const -> sock_type
constructor SOCK : socket -> ('sock, 'af) sock
constructor ADDR : addr -> 'af sock_addr
Value detail |
---|
val toWords
val fromBytes
| 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). |