Thomas de Zeeuw
0b54557796
Remove unused code ( #44 )
...
* remove unused #[macro_use] and #[allow(unused_macros)]
* remove unused FnBox trait
* remove unused temporary variable
* remove Evented trait requirement to implement Debug
2017-12-01 15:34:03 -06:00
Carl Lerche
b23a997cb8
Remove deprecated code.
...
This commit removes code that was deprecated in tokio-core master.
2017-10-30 16:37:15 -07:00
Carl Lerche
36aaaa1520
Rename crate to tokio
2017-10-30 16:37:00 -07:00
Alex Crichton
335c3e73a4
Fix UDP test
2017-10-05 19:57:36 -07:00
Bastian Köcher
7950b43505
Adds a test for UdpSocket connect, recv and send
2017-09-12 14:37:40 +02:00
Henning Ottesen
bda6ed9241
UDP 0-length datagrams
...
Resolves #248 , preventing UdpFramed from sending 0-length datagrams.
Also, adds 0-length tests for UdpSocket.
2017-09-11 17:32:37 +02:00
Alex Crichton
66cff8e84b
Swap Handle/Pinned
...
* Handle -> Remote
* Pinned -> Handle
All APIs now take a `&Handle` by default and in general can return an immediate
`io::Result` instead of an `IoFuture`. This reflects how most usage will likely
be done through handles rather than remotes, and also all previous functionality
can be recovered with a `oneshot` plus `Remote::spawn`.
Closes #15
2016-09-07 22:12:41 -07:00
Alex Crichton
6c045d31ac
Reorganize the entire crate:
...
Renamed APIs
* Loop => reactor::Core
* LoopHandle => reactor::Handle
* LoopPin => reactor::Pinned
* TcpStream => net::TcpStream
* TcpListener => net::TcpListener
* UdpSocket => net::UdpSocket
* Sender => channel::Sender
* Receiver => channel::Receiver
* Timeout => reactor::Timeout
* ReadinessStream => reactor::PollEvented
* All `LoopHandle` methods to construct objects are now free functions on the
associated types, e.g. `LoopHandle::tcp_listen` is now `TcpListener::bind`
* All APIs taking a `Handle` now take a `Handle` as the last argument
* All future-returning APIs now return concrete types instead of trait objects
Added APIs
* io::Io trait -- Read + Write + ability to poll
Removed without replacement:
* AddSource
* AddTimeout
* IoToken
* TimeoutToken
Closes #3
Closes #6
2016-09-07 22:12:14 -07:00
Alex Crichton
3794cf7f1d
Update with Poll/Async changes
2016-09-02 12:17:38 -07:00
Alex Crichton
f107c8d860
Rename to tokio-core, add in futures-io
...
Renames the futures-mio crate to tokio-core, pulls in the futures-io crate under
an `io` module, and gets everything compiling.
2016-08-26 14:39:47 -07:00
Alex Crichton
d0b911189c
Re-work I/O
...
* Auto-register interest whenever we see WouldBlock
* Remove implementations of `Stream<Item=Ready>`, no longer needed
* Add explicit `poll_{read,write}` methods, if needed
* Remove all I/O streams, libstd ones suffice
* Update all I/O futures
2016-08-17 18:41:34 -07:00
Alex Crichton
1d7098eece
Add a simple UDP test
2016-08-02 23:56:01 -07:00