Struct trust_dns::tcp::TcpClientConnection
[−]
[src]
pub struct TcpClientConnection { /* fields omitted */ }
TCP based DNS client
Methods
impl TcpClientConnection
[src]
fn new(name_server: SocketAddr) -> ClientResult<Self>
Creates a new client connection.
Note this has side affects of establishing the connection to the specified DNS server and starting the event_loop. Expect this to change in the future.
Arguments
name_server
- address of the name server to use for queries
Trait Implementations
impl ClientConnection for TcpClientConnection
[src]
fn send(&mut self, buffer: Vec<u8>) -> ClientResult<Vec<u8>>
Sends a serialized message to via this connection, returning the serialized response. Read more