Find a file
Jeff Olson 3817ba7578 adding uv::direct and beginning to work out tcp request case
lots of changes, here.. should've commited sooner.
- added uv::direct module that contains rust fns that map, neatly, to
the libuv c library as much as possible. they operate on ptrs to libuv
structs mapped in rust, as much as possible (there are some notable
exceptions). these uv::direct fns should only take inputs from rust and,
as neccesary, translate them into C-friendly types and then pass to the
C functions. We want to them to return ints, as the libuv functions do,
so we can start tracking status.
- the notable exceptions for structs above is due to ref gh-1402, which
prevents us from passing structs, by value, across the Rust<->C barrier
(they turn to garbage, pretty much). So in the cases where we get back
by-val structs from C (uv_buf_init(), uv_ip4_addr(), uv_err_t in callbacks)
, we're going to use *ctypes::void (or just errnum ints for uv_err_t) until
gh-1402 is resolved.
- using crust functions, in these uv::direct fns, for callbacks from libuv,
will eschew uv_err_t, if possible, in favor a struct int.. if at all
possible (probably isn't.. hm.. i know libuv wants to eventually move to
replace uv_err_t with an int, as well.. so hm).
- started flushing out a big, gnarly test case to exercise the tcp request
side of the uv::direct functions. I'm at the point where, after the
connection is established, we write to the stream... when the writing is
done, we will read from it, then tear the whole thing down.

overall, it turns out that doing "close to the metal" interaction with
c libraries is painful (and more chatty) when orchestrated from rust. My
understanding is that not much, at all, is written in this fashion in the
existant core/std codebase.. malloc'ing in C has been preferred, from what
I've gathered. So we're treading new ground, here!
2012-04-06 15:35:48 -07:00
doc Re-rename option functions 2012-04-06 12:20:13 -07:00
man Updating the manpage and usage message 2012-01-30 19:02:20 -08:00
mk build: Remove a redundant search path 2012-04-06 10:58:03 -07:00
src adding uv::direct and beginning to work out tcp request case 2012-04-06 15:35:48 -07:00
.gitignore Add config.stamp to .gitignore 2012-03-27 22:25:10 -07:00
.gitmodules Update libuv. 2012-02-02 17:39:47 -08:00
AUTHORS.txt Add Tom Lee to AUTHORS 2012-04-02 21:47:20 -07:00
configure build: Add --enable-debug configure option 2012-03-29 19:10:38 -07:00
INSTALL.txt Bump version in INSTALL.txt 2012-03-28 22:45:13 -07:00
LICENSE.txt Add Inno Setup installer script rather than NSIS 2012-01-25 16:02:53 -08:00
Makefile.in Remove autodep.mk, it's not being used. 2012-04-04 18:08:55 -07:00
README.txt Rename some readmes and fix some dist logic. 2012-01-17 16:50:13 -08:00
RELEASES.txt Fix typo in release notes. 2012-03-28 13:52:47 -07:00

This is a compiler and suite of associated libraries and documentation for the
Rust programming language.

See LICENSE.txt for terms of copyright and redistribution.

See http://www.rust-lang.org for more information.