VxWorks Reference Manual : Libraries
telnetLib - telnet server library
telnetInit( ) - initialize the telnet daemon
telnetd( ) - VxWorks telnet daemon
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.
The telnet daemon, telnetd( ), accepts remote telnet login requests and causes the shell's input and output to be redirected to the remote user. The telnet daemon is started by calling telnetInit( ), which is called automatically when the configuration macro INCLUDE_TELNET is defined.
Internally, the telnet daemon provides a tty-like interface to the remote user through the use of the VxWorks pseudo-terminal driver, ptyDrv.
telnetLib.h
telnetInit( ) - initialize the telnet daemon
void telnetInit (void)
This routine initializes the telnet facility, which supports remote login to the VxWorks shell via the telnet protocol. It creates a pty device and spawns the telnet daemon. It is called automatically when the configuration macro INCLUDE_TELNET is defined.
N/A
telnetd( ) - VxWorks telnet daemon
void telnetd (void)
This routine enables remote users to log in to VxWorks over the network via the telnet protocol. It is spawned by telnetInit( ), which should be called at boot time.
Remote telnet requests will cause stdin, stdout, and stderr to be stolen away from the console. When the remote user disconnects, stdin, stdout, and stderr are restored, and the shell is restarted.
The telnet daemon requires the existence of a pseudo-terminal device, which is created by telnetInit( ) before telnetd( ) is spawned. The telnetd( ) routine creates two additional processes, tTelnetInTask and tTelnetOutTask, whenever a remote user is logged in. These processes exit when the remote connection is terminated.
N/A