tcp server init
This commit is contained in:
parent
e2bbcedf3e
commit
bbd6cec8ac
@ -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;
|
||||||
|
9
satrs-core/src/hal/host/tcp_server.rs
Normal file
9
satrs-core/src/hal/host/tcp_server.rs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn basic_test() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user