summary refs log tree commit diff
path: root/src/libstd/net_tcp.rs
AgeCommit message (Collapse)AuthorLines
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
2013-01-26Merge remote-tracking branch 'brson/nocommupstream2'Brian Anderson-340/+372
2013-01-25Fix Option camel case in commentsTyler Bindon-4/+4
2013-01-25Merge remote-tracking branch 'brson/nocommupstream'Brian Anderson-340/+372
Conflicts: src/libcore/private.rs src/libcore/task/mod.rs src/libcore/task/spawn.rs src/libstd/net_tcp.rs src/libstd/uv_global_loop.rs src/libstd/uv_iotask.rs
2013-01-24convert most of libstd over to structsErick Tryzelaar-33/+35
2013-01-23std: Convert uv_global_loop to use pipesBrian Anderson-33/+41
2013-01-23libsyntax: Remove `fn() unsafe { ... }`. r=graydonPatrick Walton-579/+681
2013-01-13Support ARM and Androidkyeongwoon-0/+2
Conflicts: src/libcore/os.rs src/librustc/back/link.rs src/librustc/driver/driver.rs src/librustc/metadata/loader.rs src/librustc/middle/trans/base.rs
2013-01-13Merge pull request #4411 from wting/4203_rename_memcpyTim Chevalier-1/+1
Rename memcpy, memmove, memset
2013-01-12libstd: "target_os = win32", not "target_os = windows". rs=bustagePatrick Walton-2/+2
2013-01-11libstd: Ignore failing test on WindowsPatrick Walton-0/+3
2013-01-10librustc: Make all external functions unsafe. r=tjcPatrick Walton-3/+4
2013-01-10std: Fix test that was commented outTim Chevalier-14/+11
2013-01-10Rename memcpy, memmove, memset to prevent any confusion with the C equivalents.William Ting-1/+1
Closes #4203.
2013-01-09std: fix net::tcp::test fallout from 2db3abd harderGraydon Hoare-13/+14
2013-01-09std: fix net::tcp::test fallout from 2db3abdGraydon Hoare-1/+5
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-3/+8
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-8/+3
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-3/+8
module scope. r=tjc
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-5/+29
contain at least two components. r=graydon