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

📄 socket_family_from_name.3ncs

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 3NCS
字号:
.TH socket_family_from_name 3ncs.SH Namesocket_family_from_name \- convert an address family name to an integer.SH Syntax#include <idl/c/socket.h>unsigned long socket_$family_from_name(\fIname, nlength, status\fP).nfsocket_$string_t \fIname\fP;unsigned long \fInlength\fP;status_$t *\fIstatus\fP;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/socket.ins.pas'\fR.\".\"\fBfunction socket_$family_from_name(\fR.\"	\fBin \fIname\fB: socket_$string_t;\fR.\"	\fBin \fInlength\fB: unsigned32;\fR.\"	\fBout \fIstatus\fB: status_$t): unsigned32;\fR.\".DE.SH Arguments.TP 20\fIname\fRThe textual name of an address family.Currently, only \fBip\fR is supported..TP 20\fInlength\fRThe length, in bytes, of \fIname\fR..TP 20\fIstatus\fRThe completion status. If the completion status returned in.PN status\&.allis equal to.B status_$ok ,then the routine that supplied it was successful. .SH DescriptionThe .PN socket_$family_from_nameroutine returns the integer representation ofthe address family specified in the text string \fIname\fR..NXR "Operations on Socket Addresses" "socket_family_from_name".ig.SH External VariablesThis section describes external variables used in this \fBsocket_$\fR routine..TP 20...SH ExamplesThe server program for the banks example, .PN /usr/examples/banks/bankd.caccepts a textual family name as its first argument.  The program usesthe following.PN socket_$family_from_nameroutine to convert this name to the corresponding integerrepresentation:.EXfamily = socket_$family_from_name              (argv[1], (long)strlen(argv[1]), &status);.EE.ig.SH Status CodesThis section lists status codes for errors returned by \fBsocket_$\fR routines....SH Files.PN /usr/include/idl/socket.idl.br.PN /usr/include/idl/c/socket.h.SH See Alsointro(3ncs), socket_family_to_name(3ncs), socket_from_name(3ncs), socket_to_name(3ncs)

⌨️ 快捷键说明

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