The oai telnet server is implemented in shared libraries to be loaded by the oai shared library loader. libtelnetsrv.so
contains the code common to all oai softmodem executables, where libtelnetsrv_<app>.so
contains the code specific to the executable identified by app
.
<app> |
executable |
---|---|
enb | lte-softmodem |
gnb | nr-softmodem |
4Gue | lte-uesoftmodem |
5Gue | nr-uesoftmodem |
The implementation includes a telnetsrv_autoinit
function which is automatically called at load time, starts the telnet server and registers a first set of commands, which are delivered with the server (telnet, softmodem, loader). it also uses the get_softmodem_function
call to retrieve the running executable id and possibly loads the corresponding libtelnetsrv_<app>.so
library.
Currently the telnet server only supports one user connection. The same dedicated thread is used to wait for a user connection and process the input received from this connection.
The telnet server provides an API which can be used by any oai component to add new CLI commands to the server. A pre-defined command can be used to get or set a list of variables.
telnet server source files are located in common/utils/telnetsrv
telnet
CLI command. This implementation is compatible with all softmodem executables and is in charge of loading any additional libtelnetsrv_<app> .so
containing code specific to the running executables.telnetsrv_<XXX\>.c
: implementation of <XXX> CLI command which are delivered with the telnet server and are common to all softmodem executables.telnetsrv_<XXX\>.h
: include file for the implementation of XXX CLI command. Usually included only in the corresponding .c
filetelnetsrv_<app>_<XXX>.c
: implementation of <XXX> CLI command specific to the executable identified by <app>.These sources are used to create libtelnetsrv_<app>.so
at build time.Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )