File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -170,17 +170,11 @@ where
170170 self . mode
171171 }
172172
173- // TODO: Make this non-public
174- /// Requests a Socket
173+ /// Request current `Socket` handle.
175174 pub fn get_socket ( & mut self ) -> Result < Socket , Error > {
176175 self . protocol_handler . get_socket ( )
177176 }
178177
179- /// Returns [`Socket`] reference set by calling [`TcpClient::get_socket`]
180- fn socket ( & self ) -> Socket {
181- self . socket . unwrap ( )
182- }
183-
184178 /// Send a string slice of data to a connected server.
185179 pub fn send_data ( & mut self , data : & str ) -> Result < [ u8 ; ARRAY_LENGTH_PLACEHOLDER ] , Error > {
186180 self . protocol_handler
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ where
196196 . set_dns_config ( dns1, dns2)
197197 }
198198
199- /// Query the DNS server(s) provided via [ `set_dns`] for the associated IP address to the provided hostname.
199+ /// Query the DNS server(s) provided via `set_dns` for the associated IP address to the provided hostname.
200200 pub fn resolve ( & mut self , hostname : & str ) -> Result < IpAddress , Error > {
201201 self . protocol_handler . borrow_mut ( ) . resolve ( hostname)
202202 }
You can’t perform that action at this time.
0 commit comments