The ProtDB 구조
The ProtDB 구조
이 구조는 프로토콜 데이터베이스의 엔트리를 조회하는 연산을 제공해요.
출처: 문서
본문
시놉시스 (Synopsis)
signature NET_PROT_DB (* OPTIONAL *)
structure NetProtDB :> NET_PROT_DB (* OPTIONAL *)
인터페이스 (Interface)
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
설명 (Description)
type entry
프로토콜 데이터베이스의 엔트리 타입이에요. name은 프로토콜의 정식 이름, aliases는 별칭 목록이에요.
name en
getProtoByName name은 이름으로 프로토콜 엔트리를 찾아 SOME을 돌려주고, 없으면 NONE을 돌려줘요.
aliases en
getProtoByNumber는 프로토콜 번호로 엔트리를 찾아 SOME을 돌려주고, 없으면 NONE을 돌려줘요.
protocol en
엔트리 en으로 설명되는 프로토콜의 프로토콜 번호를 돌려줘요.
getByName s
네트워크 프로토콜 데이터베이스에서 이름이 s인 프로토콜을 찾아요. 찾으면 해당 데이터베이스 엔트리 en에 대해 SOME(en)을, 그렇지 않으면 NONE을 돌려줘요.
getByNumber i
네트워크 프로토콜 데이터베이스에서 프로토콜 번호가 i인 프로토콜을 찾아요. 찾으면 해당 데이터베이스 엔트리 en에 대해 SOME(en)을, 그렇지 않으면 NONE을 돌려줘요.
더 알아보기 (Learn more)
- [ Top | Parent | Contents | Index | Root ] 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).