about summary refs log tree commit diff
path: root/src/libstd/net_tcp.rs
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-1970/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-1/+1
2013-05-15Rename vec::len(var) to var.len()Youngmin Yoo-3/+3
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-2/+2
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-13/+11
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-11Warning policeTim Chevalier-13/+11
2013-05-09remove vecs_implicitly_copyable from libstd/libcoreDaniel Micay-32/+29
2013-05-08libcore: Fix tests.Patrick Walton-1/+1
2013-05-08librustc: Fix merge fallout.Patrick Walton-8/+10
2013-05-08libstd: Remove mutable fields from fileinput and net_tcpPatrick Walton-19/+21
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-2/+0
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-03std: Warning policeTim Chevalier-2/+0
2013-04-30new borrow checker (mass squash)Niko Matsakis-3/+3
2013-04-29librustc: Remove `ptr::addr_of`.Patrick Walton-41/+40
2013-04-27only use #[no_core] in libcoreDaniel Micay-2/+0
2013-04-19librustc: WIP patch for using the return value.Patrick Walton-8/+21
2013-04-18core::comm: Modernize constructors to use `new`Brian Anderson-15/+15
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-4/+4
pub mod or pub fn).
2013-04-14std: remove unused unsafe blocks/functionsAlex Crichton-160/+147
2013-03-31Fix warningsBrian Anderson-2/+1
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-14/+14
2013-03-28Removing unused importsAlex Crichton-2/+2
2013-03-27core/std: Remove uses of ++ modeTim Chevalier-1/+1
from stackwalk::frame_address and net_tcp::on_tcp_read_cb As per #4425
2013-03-26libcore: Change `[const T]` to `const [T]` everywherePatrick Walton-1/+1
2013-03-21librustc: Forbid destructors from being attached to any structs that might ↵Patrick Walton-0/+1
contain non-Owned fields. r=nmatsakis
2013-03-18librustc: Make the compiler ignore purity.Patrick Walton-2/+3
For bootstrapping purposes, this commit does not remove all uses of the keyword "pure" -- doing so would cause the compiler to no longer bootstrap due to some syntax extensions ("deriving" in particular). Instead, it makes the compiler ignore "pure". Post-snapshot, we can remove "pure" from the language. There are quite a few (~100) borrow check errors that were essentially all the result of mutable fields or partial borrows of `@mut`. Per discussions with Niko I think we want to allow partial borrows of `@mut` but detect obvious footguns. We should also improve the error message when `@mut` is erroneously reborrowed.
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-1/+1
2013-03-11Remove uses of logBrian Anderson-69/+69
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-15/+15
2013-03-07libstd: Remove `extern mod { ... }` from libstd. rs=deexterningPatrick Walton-6/+10
2013-03-07De-implicit-self libstdBen Striegel-15/+15
2013-03-03rustc: MIPS32 supportJyun-Yan You-0/+1
2013-03-02libstd: Remove `fn@`, `fn~`, and `fn&` from libstd. rs=defunPatrick Walton-8/+10
2013-03-01`std::net::tcp` docs: Use current syntax and typesBenjamin Herr-76/+76
Doesn't touch non-comment lines. This changes various type_names to TypeNames and fixes the example for `tcp::accept` that was still using the old `match` syntax and `{|args| ...}` closures.
2013-02-28librustc: Mark all type implementations public. rs=impl-publicityPatrick Walton-1/+1
2013-02-21core: Extract comm from pipes. #4742Brian Anderson-2/+2
2013-02-15auto merge of #4969 : nickdesaulniers/rust/issue3869, r=brsonbors-1/+2
Issue #3869 review? @nikomatsakis Convert all uses of vec::slice to vec::view Issue #3869 Rename const_view to const_slice Renamed mut_view to mut_slice Fix windows build error. `buf` is borrowed by the call to `as_mut_buf()` and so we must invoke `slice()` outside of that call.
2013-02-15libstd: Get rid of `move`.Luqman Aden-25/+25
2013-02-14Convert all uses of vec::slice to vec::view Issue #3869Nick Desaulniers-1/+2
Rename const_view to const_slice Renamed mut_view to mut_slice
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-4/+4
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-10/+10
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-0/+1
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-02-04Merge remote-tracking branch 'bstrie/rimov' into incomingBrian Anderson-1/+1
Conflicts: src/libsyntax/parse/parser.rs src/test/bench/graph500-bfs.rs src/test/bench/sudoku.rs src/test/run-pass/borrowck-mut-vec-as-imm-slice.rs src/test/run-pass/empty-mutable-vec.rs src/test/run-pass/foreach-nested.rs src/test/run-pass/swap-2.rs
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-1/+1
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-13/+13
2013-01-30RIMOV, round 5Ben Striegel-1/+1
find ./ -type f -name "*.rs" -exec sed -i "s/\&\[mut /\&mut \[/g" {} \;
2013-01-29std: Stop using oldcommBrian Anderson-303/+276
2013-01-28TidyBrian Anderson-6/+9
2013-01-28Greatly improve performance for TcpSocketBuf.readMichael Neumann-35/+77
For every call to the read() function the internal buffer was copied into a new buffer (minus the bytes copied into the result buffer). When the internal buffer is large enough, this severely affects performance, especially when read_line() is used which calls read_byte() (which calls read()) for each read byte. For line oriented I/O this wasn't all that bad, because the internal buffers usually never were very big. The effect is much more visible once the buffer grows larger. Now we always first look into the internal buffer and copy as many bytes as possible (and desired) into the result buffer. If we need more, we call the socket read function and use the result as the new internal buffer, then continue to copy from the (new) internal buffer, and so on.
2013-01-28Convert log(debug, ...) to debug!(...)Michael Neumann-69/+62