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
Alex Crichton
ca8104ad69
Merge pull request #272 from cramertj/must-use
...
Set Future types as must_use
2017-10-27 12:19:21 -04:00
Taylor Cramer
bd9a07f3ad
Set Stream types as must_use
2017-10-25 18:02:14 -07:00
Taylor Cramer
b4fa47bd09
Set Future types as must_use
2017-10-25 17:57:25 -07:00
Taylor Cramer
6b8ad4ff99
Fix warnings
2017-10-25 17:27:24 -07:00
Alex Crichton
25760609fa
Avoid 0-length IoVec instances
...
These are unsound on Windows (unfortunately) and will soon be disallowed due to
carllerche/iovec#5
2017-10-05 10:41:05 -07:00
arthurprs
f12b761b77
Prefer ErrorKind::WouldBlock
2017-09-03 18:39:04 +02:00
Alex Crichton
e8617ea1fc
Update futures dependency
2017-08-24 08:16:04 -07:00
Raph Levien
05b1ba4342
[fuchsia] Config changes to build on Fuchsia
...
This patch disables various Unix-specific platform features that are
not enabled on Fuchsia. It also updates the mio version to 0.6.10,
which is the first release that supports Fuchsia.
2017-07-31 14:12:53 -07:00
Sean McArthur
bf93b79120
make TcpStream::flush() a noop
2017-06-23 15:25:25 -07:00
Carl Lerche
7acffe4785
Expose TCP socket options
2017-05-27 09:37:25 -07:00
Alex Crichton
b92fd2d22a
Update to latest mio version
2017-05-19 10:00:57 -07:00
Alex Crichton
29144e6c9b
Return NotReady from TcpStream::read_buf
2017-03-27 08:55:30 -07:00
Daniel Harding
f5db8136d7
Fix logic error in TcpStream.read_buf()
...
If the underlying read_bufs() call returned a WouldBlock error,
TcpStream.read_buf() was erroneously calling self.io.need_write(), when
it should actually call self.io.need_read().
2017-03-27 16:54:56 +02:00
Alex Crichton
45e69bfb61
Return NotReady from TcpStream::write_buf
...
Closes #194
2017-03-27 07:33:18 -07:00
Alex Crichton
8c1838e093
Fix build on beta/nightly
...
I believe this happened due to a very recent rustc soundness fix!
Closes #189
2017-03-15 10:29:17 -07:00
Alex Crichton
89fcc96dd4
Migrate to using tokio-io
...
Deprecate the existing `io` module in this crate entirely.
More details coming soon!
Closes #61
2017-03-15 09:46:54 -07:00
Sean McArthur
829563ccfc
add read_bufs and write_bufs to Io and TcpStream
2017-01-27 11:32:08 -08:00
Alex Crichton
a4b4d57cb7
Touch up TcpStream::from_stream
2017-01-24 16:39:01 -08:00
Alex Crichton
4363663dea
Merge pull request #158 from GuillaumeGomez/from_stream
...
Add from_stream method
2017-01-24 16:37:28 -08:00
Guillaume Gomez
c1f1320203
Add from_stream method
2017-01-24 23:49:50 +01:00
Alex Crichton
c9d0fe59dd
Add a fast path to TcpListener::accept
2017-01-23 20:12:01 -08:00
Alex Crichton
64c360c30e
Touch up TcpStream::connect and revert breaking change
2017-01-06 11:37:46 -08:00
Alexander Reece
3dd4178bb5
Update TcpStream::connect_stream() to return TcpStreamNew
2016-12-20 20:41:13 -05:00
Alexander Reece
000e9b5ab9
Change TcpStream::new() and TcpStream::connect() to return concrete types.
2016-12-20 20:41:13 -05:00
Alex Crichton
ef89def808
Touch up docs of TcpListener::accept
2016-12-16 11:15:34 -08:00
Alex Crichton
edf6a57450
Minor tweaks w/ TcpListener::accept
2016-12-16 11:13:08 -08:00
Dawid Ciężarkiewicz
1864ecc46f
tcp: Express incoming in terms of accept
2016-12-16 11:07:08 -08:00
Dawid Ciężarkiewicz
936727fa52
Don't block in TcpListener::accept
...
Instead hold a pending Future of the next `TcpStream`.
2016-12-16 10:35:42 -08:00
Dawid Ciężarkiewicz
38df0d7f0f
Implement TcpListener::accept()
2016-12-16 10:35:42 -08:00
Ryan Scott
c9554fa174
Fixed a small typo of 'writey' where it was expected to be 'ready' in TcpStream and UdpSocket documentation.
2016-10-25 10:13:52 +09:00
Simon Bernier St-Pierre
32ccf255b5
update the docs of net::*::bind
2016-09-10 19:12:30 -04: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