about summary refs log tree commit diff
path: root/src/libstd/rt/io/net/udp.rs
AgeCommit message (Collapse)AuthorLines
2013-11-11Move std::rt::io to std::ioAlex Crichton-321/+0
2013-10-30Make Writer::flush a no-op default methodAlex Crichton-2/+0
Closes #9126
2013-10-24Remove io::read_errorAlex Crichton-2/+2
The general idea is to remove conditions completely from I/O, so in the meantime remove the read_error condition to mean the same thing as the io_error condition.
2013-10-24Remove IoFactoryObject for ~IoFactoryAlex Crichton-11/+8
This involved changing a fair amount of code, rooted in how we access the local IoFactory instance. I added a helper method to the rtio module to access the optional local IoFactory. This is different than before in which it was assumed that a local IoFactory was *always* present. Now, a separate io_error is raised when an IoFactory is not present, yet I/O is requested.
2013-10-24Migrate Rtio objects to true trait objectsAlex Crichton-2/+2
This moves as many as I could over to ~Trait instead of ~Typedef. The only remaining one is the IoFactoryObject which should be coming soon...
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-14/+14
Who doesn't like a massive renaming?
2013-10-02Stop using newtype wrappers in std::rt::ioSteven Fackler-7/+9
UnboundedPipeStream is still a newtype since process::set_stdio needs to look into its internals. Closes #9667
2013-09-30std: Remove usage of fmt!Alex Crichton-15/+15
2013-09-06Make I/O tests use run_in_mt_newsched_task to get more multi-threaded test ↵Eric Reed-8/+34
coverage
2013-08-27librustc: Ensure that type parameters are in the right positions in paths.Patrick Walton-1/+4
This removes the stacking of type parameters that occurs when invoking trait methods, and fixes all places in the standard library that were relying on it. It is somewhat awkward in places; I think we'll probably want something like the `Foo::<for T>::new()` syntax.
2013-08-03Rename IpAddr -> SocketAddr, extract IpAddr from SocketAddrStepan Koltsov-10/+10
multicast functions now take IpAddr (without port), because they dont't need port. Uv* types renamed: * UvIpAddr -> UvSocketAddr * UvIpv4 -> UvIpv4SocketAddr * UvIpv6 -> UvIpv6SocketAddr "Socket address" is a common name for (ip-address, port) pair (e.g. in sockaddr_in struct).
2013-08-01minor tweaks - unboxed the coroutine so that it is no longer a ~ pointer ↵toddaaro-1/+1
inside the task struct, and also added an assert to verify that send is never called inside scheduler context as it is undefined (BROKEN) if that happens
2013-08-01A major refactoring that changes the way the runtime uses TLS. In thetoddaaro-8/+8
old design the TLS held the scheduler struct, and the scheduler struct held the active task. This posed all sorts of weird problems due to how we wanted to use the contents of TLS. The cleaner approach is to leave the active task in TLS and have the task hold the scheduler. To make this work out the scheduler has to run inside a regular task, and then once that is the case the context switching code is massively simplified, as instead of three possible paths there is only one. The logical flow is also easier to follow, as the scheduler struct acts somewhat like a "token" indicating what is active. These changes also necessitated changing a large number of runtime tests, and rewriting most of the runtime testing helpers. Polish level is "low", as I will very soon start on more scheduler changes that will require wiping the polish off. That being said there should be sufficient comments around anything complex to make this entirely respectable as a standalone commit.
2013-08-01make `in` and `foreach` get treated as keywordsDaniel Micay-1/+1
2013-07-26libstd: Tests for {peer, socket}_name.Luqman Aden-0/+29
2013-07-25libstd: Implement {peer, socket}_name for new rt tcp & udp.Luqman Aden-1/+12
2013-07-19Changed methods on UDP sockets and TCP/UDP watchers to &mut self to reflect ↵Eric Reed-8/+9
that libuv may change the underlying handle.
2013-07-02IPv6 support for UDP and TCP.Eric Reed-2/+71
2013-06-26removed unecessary methodEric Reed-3/+1
2013-06-25Converted UdpSocket into a newtype struct and (dis)connecting uses move ↵Eric Reed-27/+12
semantics rather than ~.
2013-06-25satisfy the formatting checkEric Reed-2/+2
2013-06-25UDP networking with testsEric Reed-4/+99
2013-06-19socket based UDP ioEric Reed-24/+77
2013-06-17stated to implement UdpStreamEric Reed-4/+13
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+45
This only changes the directory names; it does not change the "real" metadata names.