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

📄 strmsocklib.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/strmSockLib.html - generated by refgen from strmSockLib.c --> <title> strmSockLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual :  Libraries</i></a></p></blockquote><h1>strmSockLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>strmSockLib</strong> - interface to STREAMS sockets (STREAMS Option) </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./strmSockLib.html#strmSockProtoAdd">strmSockProtoAdd</a></i>(&nbsp;)</b>  -  add a new transport-protocol entry to STREAMS sockets (STREAMS Option)<br><b><i><a href="./strmSockLib.html#strmSockProtoDelete">strmSockProtoDelete</a></i>(&nbsp;)</b>  -  remove a protocol entry from the table (STREAMS Option)<br><b><i><a href="./strmSockLib.html#strmSockDevNameGet">strmSockDevNameGet</a></i>(&nbsp;)</b>  -  get the transport-provider device name (STREAMS Option)<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides facilities to add transport provider names to the list oftransport providers. This list is used by the STREAMS socket call to open the appropriate transport provider. The library also provides facilities to delete the protocol entry from the list.<p>The <b><i>strmSockLibInit</i>(&nbsp;)</b> routine initializes the table of function pointers with STREAMS sockets calls. This ensures that the socket calls areconfigured to use either BSD sockets or WindNet STREAMS sockets.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./strmSockLib.html#top">strmSockLib</a></b>, <i>WindNet STREAMS Optional Component Supplement </i><hr><a name="strmSockProtoAdd"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>strmSockProtoAdd</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>strmSockProtoAdd</i>(&nbsp;)</strong> - add a new transport-protocol entry to STREAMS sockets (STREAMS Option)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS strmSockProtoAdd    (    int    family, /* address family of added protocol */    int    type,   /* socket type of added protocol */    char * devName /* transport provider device name */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine enables transport independence for the STREAMSsocket library by adding transport-provider entries to the table. It must be called for all transport providers that use the STREAMS socket interface. Thisroutine must be executed before applications call <b><i><a href="./sockLib.html#socket">socket</a></i>(&nbsp;)</b>.  The table consists of three fields: the address family (<b>AF_INET</b>, <b>AF_CCITT</b>), the socket type (<b>SOCK_STREAM</b>, <b>SOCK_RAW</b>), and the transport-provider device name. The socket library decides on an appropriate transport provider based on the address-family and socket-type parameters passed to the <b><i><a href="./sockLib.html#socket">socket</a></i>(&nbsp;)</b>.<p></blockquote><h4>WARNING</h4><blockquote><p>Two different transport providers having the same address family andsocket type cannot be added to the table.<p></blockquote><h4>EXAMPLE</h4><blockquote><p><p><pre>strmSockProtoAdd (AF_INET, SOCK_DGRAM, "/dev/udp")</pre></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the transport-provider entry cannot be made.<p></blockquote><h4>ERRNO</h4><blockquote><p>S_strmLib_DUPLICATE_PROVIDER</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./strmSockLib.html#top">strmSockLib</a></b><hr><a name="strmSockProtoDelete"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>strmSockProtoDelete</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>strmSockProtoDelete</i>(&nbsp;)</strong> - remove a protocol entry from the table (STREAMS Option)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS strmSockProtoDelete    (    int family, /* address family */    int type    /* socket type */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine removes a protocol entry from the  table. It does a linearsearch of the table and removes an entry when there is a match.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK if successful, ERROR otherwise.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./strmSockLib.html#top">strmSockLib</a></b><hr><a name="strmSockDevNameGet"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>strmSockDevNameGet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>strmSockDevNameGet</i>(&nbsp;)</strong> - get the transport-provider device name (STREAMS Option)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>char * strmSockDevNameGet    (    int family, /* Address family of the transport provider */    int type    /* Socket type of the transport provider */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the transport-provider device name based on theaddress family and socket type passed to it. This routine does a linearsearch of the socket table and returns the device name when a match isfound.<p></blockquote><h4>RETURNS</h4><blockquote><p>A transport-protocol device name if successful, NULL otherwise.<p></blockquote><h4>ERRNO</h4><blockquote><p>ENXIO</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./strmSockLib.html#top">strmSockLib</a></b></body></html>

⌨️ 快捷键说明

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