equal
deleted
inserted
replaced
225 } |
225 } |
226 |
226 |
227 pub fn send_string(&mut self, msg: &str) { |
227 pub fn send_string(&mut self, msg: &str) { |
228 self.send_raw_msg(&msg.as_bytes()); |
228 self.send_raw_msg(&msg.as_bytes()); |
229 } |
229 } |
230 |
|
231 pub fn send_msg(&mut self, msg: &HWServerMessage) { |
|
232 self.send_string(&msg.to_raw_protocol()); |
|
233 } |
|
234 } |
230 } |
235 |
231 |
236 #[cfg(feature = "tls-connections")] |
232 #[cfg(feature = "tls-connections")] |
237 struct ServerSsl { |
233 struct ServerSsl { |
238 context: SslContext, |
234 context: SslContext, |