use crate::communication::TransportProtocol;
use std::io;
use std::net::IpAddr;
/// Trait implemented by classes which deliver Kerberos messages
pub trait KrbChannel
{
/// Sends a message and retrieves the response
fn send_recv(&self, raw: &[u8]) -> io::Result<Vec<u8>>;
fn protocol(&self) -> TransportProtocol;
fn ip(&self) -> IpAddr;
}