Read TLS data from socket
(&mut self, reader: &mut dyn std::io::Read)
| 293 | |
| 294 | /// Read TLS data from socket |
| 295 | pub fn read_tls(&mut self, reader: &mut dyn std::io::Read) -> std::io::Result<usize> { |
| 296 | match self { |
| 297 | TlsConnection::Client(conn) => conn.read_tls(reader), |
| 298 | TlsConnection::Server(conn) => conn.read_tls(reader), |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | /// Write TLS data to socket |
| 303 | pub fn write_tls(&mut self, writer: &mut dyn std::io::Write) -> std::io::Result<usize> { |
no outgoing calls
no test coverage detected