⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 net-common-tcpip-manpages-ns.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 HTML
字号:
<!-- Copyright (C) 2003 Red Hat, Inc.                                --><!-- This material may be distributed only subject to the terms      --><!-- and conditions set forth in the Open Publication License, v1.0  --><!-- or later (the latest version is presently available at          --><!-- http://www.opencontent.org/openpub/).                           --><!-- Distribution of the work or derivative of the work in any       --><!-- standard (paper) book form is prohibited unless prior           --><!-- permission is obtained from the copyright holder.               --><HTML><HEAD><TITLE>ns</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos Reference Manual"HREF="ecos-ref.html"><LINKREL="UP"TITLE="TCP/IP Library Reference"HREF="tcpip-library-reference.html"><LINKREL="PREVIOUS"TITLE="net_addrcmp"HREF="net-common-tcpip-manpages-net-addrcmp.html"><LINKREL="NEXT"TITLE="resolver"HREF="net-common-tcpip-manpages-resolver.html"></HEAD><BODYCLASS="SECT1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos Reference Manual</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="net-common-tcpip-manpages-net-addrcmp.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 38. TCP/IP Library Reference</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="net-common-tcpip-manpages-resolver.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="NET-COMMON-TCPIP-MANPAGES-NS">ns</H1><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">NS(3)                   System Library Functions Manual                  NS(3)NAME     ns_addr, ns_ntoa - Xerox NS(tm) address conversion routinesSYNOPSIS     #include &lt;sys/types.h&#62;     #include &lt;netns/ns.h&#62;     struct ns_addr     ns_addr(char *cp);     char *     ns_ntoa(struct ns_addr ns);DESCRIPTION     The routine ns_addr() interprets character strings representing XNS     addresses, returning binary information suitable for use in system calls.     The routine ns_ntoa() takes XNS addresses and returns ASCII strings rep-     resenting the address in a notation in common use in the Xerox Develop-     ment Environment:           &lt;network number&#62;.&lt;host number&#62;.&lt;port number&#62;     Trailing zero fields are suppressed, and each number is printed in hex-     adecimal, in a format suitable for input to ns_addr().  Any fields lack-     ing super-decimal digits will have a trailing `H' appended.     Unfortunately, no universal standard exists for representing XNS     addresses.  An effort has been made to ensure that ns_addr() be compati-     ble with most formats in common use.  It will first separate an address     into 1 to 3 fields using a single delimiter chosen from period (`.'),     colon (`:'), or pound-sign `#'.  Each field is then examined for byte     separators (colon or period).  If there are byte separators, each sub-     field separated is taken to be a small hexadecimal number, and the     entirety is taken as a network-byte-ordered quantity to be zero extended     in the high-network-order bytes.  Next, the field is inspected for     hyphens, in which case the field is assumed to be a number in decimal     notation with hyphens separating the millenia.  Next, the field is     assumed to be a number: It is interpreted as hexadecimal if there is a     leading `0x' (as in C), a trailing `H' (as in Mesa), or there are any     super-decimal digits present.  It is interpreted as octal is there is a     leading `0' and there are no super-octal digits.  Otherwise, it is con-     verted as a decimal number.RETURN VALUES     None.  (See BUGS.)SEE ALSO     hosts(5), networks(5)HISTORY     The ns_addr() and ns_toa() functions appeared in 4.3BSD.BUGS     The string returned by ns_ntoa() resides in a static memory area.  The     function ns_addr() should diagnose improperly formed input, and there     should be an unambiguous way to recognize this.BSD                              June 4, 1993                              BSD    </PRE></TD></TR></TABLE></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="net-common-tcpip-manpages-net-addrcmp.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-ref.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="net-common-tcpip-manpages-resolver.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">net_addrcmp</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="tcpip-library-reference.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">resolver</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -