Overview  Index  Help 
Standard ML Basis Library

PreSock


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

addr

type addr = Word8Vector.vector


af

type af = CInterface.system_const


socket

type socket = int

 
Datatype detail

in_addr

datatype in_addr = INADDR of addr


addr_family

datatype addr_family = AF of af


sock_type

datatype sock_type = SOCKTY of CInterface.system_const


sock

datatype ('sock, 'af) sock = SOCK of socket


sock_addr

datatype 'af sock_addr = ADDR of addr

 
DataConstructor detail

INADDR

constructor INADDR : addr -> in_addr


AF

constructor AF : af -> addr_family


SOCKTY

constructor SOCKTY : CInterface.system_const -> sock_type


SOCK

constructor SOCK : socket -> ('sock, 'af) sock


ADDR

constructor ADDR : addr -> 'af sock_addr

 
Value detail

toWords

val toWords


fromBytes

val fromBytes

 


Overview  Index  Help 
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).