📄 telnetlib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/telnetLib.html - generated by refgen from telnetLib.c --> <title> telnetLib </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>telnetLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>telnetLib</strong> - telnet server library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./telnetLib.html#telnetInit">telnetInit</a></i>( )</b> - initialize the telnet daemon<br><b><i><a href="./telnetLib.html#telnetd">telnetd</a></i>( )</b> - VxWorks telnet daemon<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides a remote login facility for VxWorks. It uses the telnet protocol to enable users on remote systems to log in to VxWorks.<p>The telnet daemon, <b><i><a href="./telnetLib.html#telnetd">telnetd</a></i>( )</b>, accepts remote telnet login requests andcauses the shell's input and output to be redirected to the remote user.The telnet daemon is started by calling <b><i><a href="./telnetLib.html#telnetInit">telnetInit</a></i>( )</b>, which is calledautomatically when the configuration macro <b>INCLUDE_TELNET</b> is defined.<p>Internally, the telnet daemon provides a tty-like interface to the remote userthrough the use of the VxWorks pseudo-terminal driver, ptyDrv.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>telnetLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./telnetLib.html#top">telnetLib</a></b>, <b><a href="./ptyDrv.html#top">ptyDrv</a></b>, <b><a href="./rlogLib.html#top">rlogLib</a></b><hr><a name="telnetInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>telnetInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>telnetInit</i>( )</strong> - initialize the telnet daemon</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void telnetInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the telnet facility, which supports remote loginto the VxWorks shell via the telnet protocol. It creates a pty device andspawns the telnet daemon. It is called automatically when theconfiguration macro <b>INCLUDE_TELNET</b> is defined.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./telnetLib.html#top">telnetLib</a></b><hr><a name="telnetd"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>telnetd</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>telnetd</i>( )</strong> - VxWorks telnet daemon</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void telnetd (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine enables remote users to log in to VxWorks over the network viathe telnet protocol. It is spawned by <b><i><a href="./telnetLib.html#telnetInit">telnetInit</a></i>( )</b>, which should becalled at boot time.<p>Remote telnet requests will cause <b>stdin</b>, <b>stdout</b>, and <b>stderr</b> to be stolenaway from the console. When the remote user disconnects, <b>stdin</b>, <b>stdout</b>,and <b>stderr</b> are restored, and the shell is restarted.<p>The telnet daemon requires the existence of a pseudo-terminal device,which is created by <b><i><a href="./telnetLib.html#telnetInit">telnetInit</a></i>( )</b> before <b><i><a href="./telnetLib.html#telnetd">telnetd</a></i>( )</b> is spawned. The <b><i><a href="./telnetLib.html#telnetd">telnetd</a></i>( )</b>routine creates two additional processes, <b>tTelnetInTask</b> and <b>tTelnetOutTask</b>, whenever a remote user is logged in. These processes exit when the remote connection is terminated.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./telnetLib.html#top">telnetLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -