Skip to content

Commit

Permalink
added: function get io in client connection
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscaOrtegaG committed Jan 4, 2024
1 parent a9ebfe9 commit d7d6529
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/client_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ pub trait ClientConnection: Copy {//: 'static + Sized + Send + Sync + Unpin

//Sends query
fn send(self,dns_query:DnsMessage) -> Result<Vec<u8>, ClientError>;

//Gets ips
fn get_ip(&self) -> IpAddr;
}

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
Expand Down

0 comments on commit d7d6529

Please sign in to comment.