Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Clean up endpoints etc #478

Merged
merged 14 commits into from Jan 13, 2016

Conversation

ustulation
Copy link
Contributor

Review on Reviewable

@maidsafe-highfive
Copy link

r? @vinipsmaker

(maidsafe_highfive has picked a reviewer for you, use r? to override)

@ustulation
Copy link
Contributor Author

r? @dirvine

dirvine added a commit that referenced this pull request Jan 13, 2016
@dirvine dirvine merged commit 9441bc3 into maidsafe-archive:master Jan 13, 2016
@@ -179,7 +174,7 @@ impl UdpData {

pub fn send_to(&self, destination: SocketAddr) {
let buf = [0u8; 256];
assert!(self.socket.send_to(&buf, destination).is_ok());
assert!(self.socket.send_to(&buf, &*destination).is_ok());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?!?!?!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We implemented Deref for our socket_addr::socketAddr to give a std::net::ScoketAddr so this is a dereferenced SocketAddr by reference :-( It is mostly because we wish to serialise SocketAddr and that was not implemented for net::SocketAddr, although the addition of having to deal with ip::IpAddr does add even more confusion to the code, just not specifically here.

@ustulation ustulation deleted the clean-up-endpoints-etc branch January 14, 2016 10:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants