systemd-bpq-telnet-application
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| systemd-bpq-telnet-application [2026/02/06 01:59] – ve3qbz | systemd-bpq-telnet-application [2026/02/06 02:11] (current) – ve3qbz | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | In [[simple-bpq-telnet-application|Creating a simple telnet application for BPQ]] , we describe how to write a simple telnet application that is started by systemd as a daemon, accepts telnet connections to a port, and reads/ | + | In [[simple-bpq-telnet-application|Creating a simple telnet application for BPQ]] , we describe how to write a simple telnet application that is started by systemd as a service, accepts telnet connections to a port, and reads/ |
| - | In this tutorial, we will demonstrate an alternative approach to telnet-enabling a simple terminal based application for access via BPQ that does not require adding network code to the application - we get all of our network I/O for free courtesy of the systemd socket trigger. | + | In this tutorial, we will demonstrate an alternative approach to telnet-enabling a simple terminal based application for access via BPQ that does not require adding network code to the application - we get all of our network I/O for free courtesy of the systemd socket trigger, and our application can simply read and write from standard I/O as if executing at on a normal terminal. |
| - | Our sample application for this tutorial is a WALL command, that allows visitors to the BPQ node to view and leave simple posts on a virtual wall. The application was written by xxxxx and the source code is available here: | + | Our sample application for this tutorial is a WALL command, that allows visitors to the BPQ node to view and leave simple posts on a virtual wall. The application was written by xxxxx and the source code is available here: xxxx link to Daria' |
| - | This is the code for our WALL application. | + | This is the code for our WALL application. |
| - | Save this python file wherever you want it to reside on your filesystem; | + | Save this python file wherever you want it to reside on your filesystem; |
| < | < | ||
| Line 176: | Line 176: | ||
| </ | </ | ||
| - | Next, we define a trigger for this service template | + | Next, we define a socket |
| < | < | ||
| Line 190: | Line 190: | ||
| </ | </ | ||
| - | These two files are placed in / | + | These two files are placed in / |
| At this point, we have accomplished the following: | At this point, we have accomplished the following: | ||
systemd-bpq-telnet-application.1770343172.txt.gz · Last modified: by ve3qbz