NetProtDB
structure
signature NET_PROT_DB
(* OPTIONAL *)
structure NetProtDB
:> NET_PROT_DB (* OPTIONAL *)
This structure accesses the information contained in the network protocol data base. The data may be retrieved from a file, such as /etc/protocols
on many Unix systems, or via the NIS protocols map.
type entry
val name : entry -> string
val aliases : entry -> string list
val protocol : entry -> int
val getByName : string -> entry option
val getByNumber : int -> entry option
type entry
name en
"ip"
).
aliases en
protocol en
getByName s
SOME
(en)
where en
is the corresponding data base entry; otherwise, it returns NONE
.
getByNumber i
SOME
(en)
where en
is the corresponding data base entry; otherwise, it returns NONE
.
NetHostDB
Generated April 12, 2004
Last Modified June 5, 1998
Comments to John Reppy.
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 © 2004 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). |