whitequark
|
fb05226a62
Refactor the "continuous" ring buffer interface.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
39464a53fc
Compute soft deadline in poll() and use nonblocking sockets.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
43a547fb0c
Factor out packet parsing from Socket::process.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
3974dc780f
Get rid of unused arguments in Socket::{process,dispatch}.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
ab0eccd213
Get rid of IpPayload and indirection in Socket::dispatch.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
917f89e14b
Use FnOnce, not FnMut, in Socket::dispatch() functions.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
5e448db950
Remove IpEndpoint::accepts.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
7533542ba8
Fix warnings.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
265e6f6cb7
Add UdpSocket::is_open, similar to TcpSocket::is_open in function.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
0482afc2d8
Simplify signature of UdpSocket::send_slice.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
a1910baa91
Put the debug_id field first in sockets.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
492fe3e4b1
Rework and test UDP sockets.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
5bf64586cd
Get rid of Result<_, ()>.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
1a11e4db5a
Remove useless redundant tests.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
6bb9200c06
Annotate all simple getters with #[inline].
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
5dfc861e38
Remove *Socket::{process,dispatch} from public interface.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
a15bc8105e
In {Tcp,Udp}Socket::process, make protocol check an assertion.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
1c1489e5fb
try! → ?
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
735def7e1b
Do not attempt to validate length of packets being emitted.
|
%!s(int64=7) %!d(string=hai) anos |
Egor Karavaev
|
441881609c
Factor out the `RingBuffer` container.
|
%!s(int64=7) %!d(string=hai) anos |
whitequark
|
7381e7f98b
fn Device::mtu() -> usize → Device::limits() -> DeviceLimits
|
%!s(int64=8) %!d(string=hai) anos |
whitequark
|
7af6ddfa0c
Send the TCP MSS option.
|
%!s(int64=8) %!d(string=hai) anos |
whitequark
|
16826628fe
Distinguish sockets by debug identifiers (socket set indexes).
|
%!s(int64=8) %!d(string=hai) anos |
whitequark
|
41f9426380
Calculate IP payload length from the total length field.
|
%!s(int64=8) %!d(string=hai) anos |
whitequark
|
830f9d9ad5
Update TcpSocket::{can,may}_{send,recv} APIs.
|
%!s(int64=8) %!d(string=hai) anos |
whitequark
|
0dedbaf597
impl Debug for SocketSet.
|
%!s(int64=8) %!d(string=hai) anos |
whitequark
|
8bff18cfdd
Rework the user-facing error handling in UDP sockets.
|
%!s(int64=8) %!d(string=hai) anos |
whitequark
|
d5638f469f
Return the amount of bytes sent from UdpSocket::send_slice.
|
%!s(int64=8) %!d(string=hai) anos |
whitequark
|
e2b4753173
Add functions to check if the UDP socket buffers are empty or not.
|
%!s(int64=8) %!d(string=hai) anos |
whitequark
|
0ccd6205f7
Swap the data and endpoint in UdpSocket methods.
|
%!s(int64=8) %!d(string=hai) anos |