tcp server init

This commit is contained in:
Robin Müller 2023-09-14 23:51:17 +02:00
parent e2bbcedf3e
commit bbd6cec8ac
Signed by: muellerr
GPG Key ID: FCE0B2BD2195142F
3 changed files with 12 additions and 2 deletions

View File

@ -1,2 +1,3 @@
//! Helper modules intended to be used on hosts with a full [std] runtime //! Helper modules intended to be used on hosts with a full [std] runtime
pub mod udp_server; pub mod udp_server;
pub mod tcp_server;

View File

@ -0,0 +1,9 @@
#[cfg(test)]
mod tests {
#[test]
fn basic_test() {
}
}

View File

@ -51,9 +51,9 @@ use std::vec::Vec;
/// .expect("Error sending PUS TC via UDP"); /// .expect("Error sending PUS TC via UDP");
/// ``` /// ```
/// ///
/// The [satrs-example crate](https://egit.irs.uni-stuttgart.de/rust/fsrc-launchpad/src/branch/main/-example) /// The [fsrc-example crate](https://egit.irs.uni-stuttgart.de/rust/fsrc-launchpad/src/branch/main/fsrc-example)
/// server code also includes /// server code also includes
/// [example code](https://egit.irs.uni-stuttgart.de/rust/sat-rs/src/branch/main/satrs-example/src/tmtc.rs#L67) /// [example code](https://egit.irs.uni-stuttgart.de/rust/fsrc-launchpad/src/branch/main/fsrc-example/src/bin/obsw/tmtc.rs)
/// on how to use this TC server. It uses the server to receive PUS telecommands on a specific port /// on how to use this TC server. It uses the server to receive PUS telecommands on a specific port
/// and then forwards them to a generic CCSDS packet receiver. /// and then forwards them to a generic CCSDS packet receiver.
pub struct UdpTcServer<E> { pub struct UdpTcServer<E> {