Added an Endpoint system

Need to add some tests to this.

/cc @blabaere 
OK. Currently I'm working on making the build more stable. Will fix this
and make connect return an endpoint too when done.
Le 3 nov. 2014 23:20, "Daniel Fagnan" <notifications@github.com> a écrit :

> In src/lib.rs:
>
> > @@ -117,14 +119,14 @@ impl Socket {
> >      /// //   Err(err) => panic!("Failed to bind socket: {}", err)
> >      /// //}
> >      /// ```
> > -    pub fn bind(&mut self, addr: &str) -> NanoResult<()> {
> > +    pub fn bind<'b: 'a>(&'a mut self, addr: &str) -> NanoResult<Endpoint<'b>> {
>
> This is actually incorrect. Right now it reads: 'b outlives the lifetime
> of 'a.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/thehydroimpulse/nanomsg.rs/pull/48/files#r19771405>.
>