Overview  Index  Help 
Standard ML Basis Library

NetServDB


structure NetServDB : NET_SERV_DB =
struct
  datatype entry =
           SERVENT of
           {name : string, aliases : string list, port : int, protocol : string}
  val netdbFun
  val name : entry -> string
  val aliases : entry -> string list
  val port : entry -> int
  val protocol : entry -> string
  val getByName : string * string option -> entry option
  val getByPort : int * string option -> entry option
end

   
Datatype detail

entry

datatype entry =
         SERVENT of
         {name : string, aliases : string list, port : int, protocol : string}

 
DataConstructor detail

SERVENT

constructor SERVENT
            : {
                name : string,
                aliases : string list,
                port : int,
                protocol : string
              } ->
                entry

 
Value detail

netdbFun

val netdbFun


name

val name : entry -> string


aliases

val aliases : entry -> string list


port

val port : entry -> int


protocol

val protocol : entry -> string


getByName

val getByName : string * string option -> entry option


getByPort

val getByPort : int * string option -> entry option

 


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).