jdm/rust-socket — pull request #13 by echelon (2012-10-04 21:44:43+00:00)
Title: I'm new to this, but I think I made some useful additions/fixes

Hi Josh,

I've never made patches to open source code before, so please forgive me if this is in bad form.

I made the following changes:

* Bugfix for recvfrom -- it didn't allocate memory for the sender address, so it was previously inaccessible.

* Addition of bind_socket2() -- you'll probably want to rename / change this, but I couldn't find a way to start a UDP socket in the existing API. This required a change to getaddrinfo() and the addition of a new constant. (See the commit log comments.)

* Minor stuff -- Readme -> markdown, ignore vim backup files in .gitignore

It might be interesting to add a socket() function that closely emulates the original POSIX function call signature. This could replace my bind_socket2() hack.

Anyway, thanks for reading,

Brandon