- General(String),
-}
-
-// TODO: move the following to its own module
-
-pub struct Soundmodem {
- tnc: SoftTnc,
- config: SoundmodemConfig,
-}
-
-pub struct SoundmodemConfig {
- // sound cards, PTT, etc.
-}
-
-impl Read for Soundmodem {
- fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
- self.tnc
- .read_kiss(buf)
- .map_err(|s| io::Error::new(ErrorKind::Other, format!("{:?}", s)))
- }
-}
-
-impl Write for Soundmodem {
- fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
- self.tnc
- .write_kiss(buf)
- .map_err(|s| io::Error::new(ErrorKind::Other, format!("{:?}", s)))
- }
-
- fn flush(&mut self) -> std::io::Result<()> {
- Ok(())
- }