Commit Graph

15 Commits

Author SHA1 Message Date
b4bcc6cf5c TcpStream: add send_slice() 2020-06-18 01:56:49 +02:00
bcedd02ad9 libasync: add TcpSocket::{close, abort, keep_alive, timeout}() 2020-04-16 20:43:36 +02:00
60e45f096d libasync: Sockets::run() returns ! 2020-04-16 20:42:21 +02:00
c3fc948714 libasync: replace TcpStream::listen() with accept(), make accept() return earlier 2020-04-16 20:28:40 +02:00
be35be8d38 Revert "Revert "libasync: don't let TcpStream::read() call back for empty buffers""
Zero-length buffer is really a special case, as one must return Poll::Pending in this case.

This reverts commit 1ac10ba0d4.
2020-04-15 09:16:25 +08:00
1ac10ba0d4 Revert "libasync: don't let TcpStream::read() call back for empty buffers"
Usually easy to handle in user code and avoids duplicating logic.

This reverts commit e3a6a6e1f8.
2020-04-14 09:03:48 +08:00
e3a6a6e1f8 libasync: don't let TcpStream::read() call back for empty buffers 2020-04-14 01:06:25 +02:00
60a29456ec libasync: change TcpStream::listen() callback constraint from Copy to Clone 2020-04-14 00:08:57 +02:00
ab2a8db4d3 libasync: pass time 2020-04-03 00:18:04 +02:00
6dde8c3b02 libasync: doc TcpStream 2020-04-01 23:34:53 +02:00
75a8889d28 libasync: create TcpSocketBuffers from uninitialized memory 2020-04-01 23:21:27 +02:00
0618642d3f libasync: simplify TcpStream::accept() 2020-04-01 23:01:48 +02:00
90e9a7db02 libasync: refactor listen() into accept()+listen() with a backlog 2020-04-01 22:58:02 +02:00
ab1404488c libasync: fix TcpStream, implement recv()+send() 2020-03-31 22:49:41 +02:00
d2f91eac25 libasync: start smoltcp support 2020-03-31 01:16:58 +02:00