VxWorks Reference Manual : Libraries

telnetLib

NAME

telnetLib - telnet server library

ROUTINES

telnetInit( ) - initialize the telnet daemon
telnetd( ) - VxWorks telnet daemon

DESCRIPTION

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.

INCLUDE FILES

telnetLib.h

SEE ALSO

telnetLib, ptyDrv, rlogLib


Libraries : Routines

telnetInit( )

NAME

telnetInit( ) - initialize the telnet daemon

SYNOPSIS


void telnetInit (void)

DESCRIPTION

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.

RETURNS

N/A

SEE ALSO

telnetLib


Libraries : Routines

telnetd( )

NAME

telnetd( ) - VxWorks telnet daemon

SYNOPSIS


void telnetd (void)

DESCRIPTION

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.

RETURNS

N/A

SEE ALSO

telnetLib