socket_to_name.3ncs
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3NCS 代码 · 共 75 行
3NCS
75 行
.TH socket_to_name 3ncs.SH Namesocket_to_name \- convert a socket address to a name and port number.SH Syntax#include <idl/c/socket.h>void socket_$to_name(\fIsockaddr, slength, name, nlength, port, status\fP).nfsocket_$addr_t *\fIsockaddr\fP;unsigned long \fIslength\fP;socket_$string_t \fIname\fP;unsigned long *\fInlength\fP;unsigned long *\fIport\fP;status_$t *\fIstatus\fP;.fi.\".SH SYNOPSIS (PASCAL).\".DS.\"\fB%include '/usr/include/idl/pas/socket.ins.pas'\fR.\".\"\fBprocedure socket_$to_name(\fR.\" \fBin \fIsockaddr\fB: socket_$addr_t;\fR.\" \fBin \fIslength\fB: unsigned32;\fR.\" \fBout \fIname\fB: socket_$string_t;\fR.\" \fBin out \fInlength\fB: unsigned32;\fR.\" \fBout \fIport\fB: unsigned32;\fR.\" \fBout \fIstatus\fB: status_$t);\fR.\".DE.SH Arguments.TP 20\fIsockaddr\fRA socket address.The socket address is the structure returned by either.PN rpc_$use_familyor.PN rpc_$use_family_wk ..TP 20\fIslength\fRThe length, in bytes, of \fIsockaddr\fR..TP 20\fIname\fRA string in the format \fIfamily:host[port]\fR,where \fIfamily\fR is the address family and \fIhost\fR is the host name; \fIhost\fR may be in the standard numeric form(for example, #192.1.2.3)if a textual host name cannot be obtained. Currently, only .B ipis supported for .I family..TP 20\fInlength\fROn input, the maximum length, in bytes, of the name to be returned.On output, the actual length of the name returned..TP 20\fIport\fRThe port number..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_$to_nameroutine converts a socket address to a textual address family, hostname, and port number..NXR "Operations on Socket Addresses" "socket_to_name".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_numeric_name(3ncs)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?