libosmovty 1.11.1
Osmocom VTY library
Loading...
Searching...
No Matches
Telnet Interface

Files

file  telnet_interface.h
 minimalistic telnet/network interface it might turn into a wire interface

Data Structures

struct  telnet_connection
 A telnet connection. More...

Functions

int telnet_init_default (void *tall_ctx, void *priv, int default_port)
 Initializes telnet based VTY interface using the configured bind addr/port.
int telnet_init (void *tall_ctx, void *priv, int port) OSMO_DEPRECATED("This function ignores dynamic port configuration. Use telnet_init_default() instead")
 Initialize telnet based VTY interface listening to 127.0.0.1.
int telnet_init_dynif (void *tall_ctx, void *priv, const char *ip, int port) OSMO_DEPRECATED("This function ignores dynamic port configuration. Use telnet_init_default() instead")
 Initialize telnet based VTY interface.
void telnet_exit (void)
 Close all telnet connections and release the telnet socket.

Detailed Description

Function Documentation

◆ telnet_exit()

void telnet_exit ( void )

Close all telnet connections and release the telnet socket.

References telnet_connection::entry, telnet_connection::fd, server_socket, tall_telnet_ctx, and telnet_close_client().

◆ telnet_init()

int telnet_init ( void * tall_ctx,
void * priv,
int port )

Initialize telnet based VTY interface listening to 127.0.0.1.

Parameters
[in]tall_ctxtalloc context
[in]privprivate data to be passed to callback
[in]portTCP port number to bind to
Deprecated
use telnet_init_default() instead

References _telnet_init_dynif().

◆ telnet_init_default()

int telnet_init_default ( void * tall_ctx,
void * priv,
int default_port )

Initializes telnet based VTY interface using the configured bind addr/port.

Parameters
[in]tall_ctxtalloc context
[in]privprivate data to be passed to callback
[in]default_portTCP port number to bind to if not explicitly configured

References _telnet_init_dynif(), vty_get_bind_addr(), and vty_get_bind_port().

◆ telnet_init_dynif()

int telnet_init_dynif ( void * tall_ctx,
void * priv,
const char * ip,
int port )

Initialize telnet based VTY interface.

Parameters
[in]tall_ctxtalloc context
[in]privprivate data to be passed to callback
[in]ipIP to listen to ('::1' for localhost, '::0' for all, ...)
[in]portTCP port number to bind to
Deprecated
use telnet_init_default() instead

References _telnet_init_dynif().