about summary refs log tree commit diff
path: root/src/libstd/uv.rs
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-38/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-03-18Give core::rt and std::net their own uvll bindingsBrian Anderson-1/+1
I intend to do some big refactoring and don't want to deal w/ std just now
2013-03-11core: Add rt mod and add the new scheduler codeBrian Anderson-1/+1
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-10-01De-export std::{uv, uv_ll, uv_iotask, uv_global_loop}. Part of #3583.Graydon Hoare-8/+3
2012-09-04libstd: "import" -> "use"Patrick Walton-3/+3
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-24/+24
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-05-25std: Rename uv::hl to uv::iotask. Additional cleanupBrian Anderson-2/+2
2012-04-20std: dump old std::uv API.. move remaining tests into uv::llJeff Olson-1238/+0
2012-04-20uv::hl::get_global_loop() -> uv::global_loop::get()Jeff Olson-0/+3
- moved global loop tests, as well.. will add tests in uv_hl that encompass rolling your own high_level_loop via uv::hl::run_high_level_loop() - also whitespace cleanups and misc warning cleanup.. - doesn't work on 32bit linux
2012-04-20rt: whitespace cleanup for existing libuv integrationJeff Olson-1/+1
2012-04-20adding low-level uv_timer_* stuff to libuv bindingsJeff Olson-6/+19
2012-04-20making brson's req. cleanups in #2134 plus change printf to LOG in c++Jeff Olson-561/+563
2012-04-06ignore tcp server/client test on linux 32bit, pending #2064Jeff Olson-70/+100
also println->log(debug,) and assorted cleanup ahead of merge to master
2012-04-06removing some unneeded native fn mappingsin uv.rs and misc cleanJeff Olson-31/+6
.. 32bit linux issues persist.
2012-04-06experimenting with a different uv_buf_init impl to placate 32bit linuxJeff Olson-4/+5
2012-04-06fixing some libuv stuff that leaked through the rebaseJeff Olson-13/+14
2012-04-06adding uv_hl module and some doc workJeff Olson-17/+23
2012-04-06rename uv::direct:: to uv::ll:: and put into its own crateJeff Olson-597/+140
2012-04-06getting rid of ip4 port byval test... 2064 workarounds in place, for nowJeff Olson-18/+0
2012-04-06line length fixes for make checkJeff Olson-2/+3
2012-04-06docs tweak for uv moduleJeff Olson-2/+3
2012-04-06fix size of uv_async_t on windows. is this the cause of the libuv segfault?Jeff Olson-2/+20
2012-04-06add libuv error msg helpers.. flushing out windows tcp issue.Jeff Olson-19/+60
2012-04-06add low-level uv_async bindings for use in tcp testJeff Olson-10/+102
2012-04-06refactored the tcp request and server tests into 1 test using loopbackJeff Olson-73/+106
..plus whitespace cleanup for make check
2012-04-06hello world test for a tcp server in libuvJeff Olson-12/+203
.. im now going to refactor the tcp request and server tests to utilize each other, so no more external network ugliness
2012-04-06fixing libuv stuff in win32 (see #2064) .. pass sockaddr_in by-ref, for nowJeff Olson-9/+13
2012-04-06fixed unix uv struct err from prev commit, also starting uv docsJeff Olson-1/+23
2012-04-06massaging out struct-size differences between unix and win32Jeff Olson-19/+59
2012-04-06win32 tweaksJeff Olson-17/+15
2012-04-06test_uv_tcp_request() fully working on linuxJeff Olson-19/+65
.. up next: windows! .. impl'd uv::direct::read_stop() and uv::direct::close() to wrap things up .. demonstrated sending data out of the uv_read_cb via a channel (which we block on to recv all of it, complete w/ EOF notification) that is read from after the loop exits. .. helpers to read the guts of a uv_buf_t .. an idea im kicking around: starting to pile up all of these hideous data accessor functions in uv::direct .. I might make impl/iface pairs for the various uv_* types that I'm using, in order to encapsulate those data access functions and, perhaps, make the access look a little cleaner (it still won't be straight field access, but it'll be a lot better) .. formatting cleanup to satisfy make check
2012-04-06wired up uv_read_start and some helper funcs around uv_alloc_cb tasksJeff Olson-26/+120
2012-04-06uv_buf_t's for uv_write() passed by-val .. no more mallocs or ptr cop-outsJeff Olson-17/+5
so we're now adhering the libuv C api and passing structs by-val where it is expected, instead of pulling pointer trickery (or worse having to malloc structs in c++ to be passed back to rust and then into C again)
2012-04-06fixed by-val from rust->c, use ++ sigil in native fn sig <-- NEVAR FORGETJeff Olson-15/+31
have to use ++ sigil in rust-side extern fn decls in order to have rust actually copy the struct, by value, onto the C stack. gotcha, indeed. also adding a helper method to verify/remind how to pass a struct by-val into C... check out the rust fn sig for rust_uv_ip4_test_verify_port_val() for more infos
2012-04-06fixed passing in uv_buf_t ptr array in uv_write.. return status 0Jeff Olson-3/+6
ways to go, still..
2012-04-06uv_write works, buffer passing still broke, can get sockaddr_in by valJeff Olson-16/+25
.. but passing sockaddr_in by val back to C is broken, still passing by ptr .. the uv_write_cb is processed, but we have a status -1.. there is also valgrind spew.. so buf passing is broken, still.
2012-04-06changing ctypes:: to libc:: and impl of uv::direct::write()Jeff Olson-66/+73
2012-04-06some more stuff for libuv dealing w/ 1402.. should go away soonJeff Olson-8/+7
2012-04-06adding uv::direct and beginning to work out tcp request caseJeff Olson-1/+485
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-03-14std: Rename the hashmap constructors to conform to new standardsBrian Anderson-6/+6
Instead of using the new_ prefix just name them after their type
2012-03-14allow immut vars to be moved. enforce mut vars after stage0 in std.Niko Matsakis-4/+4
2012-03-14annotate libstd and start enforcing mutabilityNiko Matsakis-7/+7
2012-03-13Overhaul constructor naming in libsBrian Anderson-1/+1
2012-03-12Libc/os/run/rand/io reorganization. Close #1373. Close #1638.Graydon Hoare-34/+34
- Move io, run and rand to core. - Remove incorrect ctypes module (use libc). - Remove os-specific modules for os and fs. - Split fs between core::path and core::os.
2012-03-09Add an infinite loop constructTim Chevalier-31/+31
Add a loop {} construct for infinite loops, and use it in test cases. See #1906 for details.
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-6/+7
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-07Revert "stdlib: Stop incurring vtable dispatch costs when hashmaps are used"Patrick Walton-7/+6
This reverts commit f0250a23d3fa2f8b4a4a4113ca89e41945a4cfed.
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-6/+7
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-02-28std: Ignore uv tests on FreeBSDBrian Anderson-0/+2