whitequark
|
86c59fe344
Factor out storage::PacketBuffer from socket::UdpSocket.
|
7 anni fa |
Philipp Oppermann
|
58e534a2fb
Use separate metadata and payload buffers for UDP sockets.
|
7 anni fa |
Dan Robertson
|
c418b60b5d
Use time types in socket
|
7 anni fa |
Philipp Oppermann
|
c2d18ec071
Return specific sockets from `new` functions instead of `Socket`.
|
7 anni fa |
Dan Robertson
|
507d2fe0ea
Add the proto-ipv4 feature.
|
7 anni fa |
Dan Robertson
|
deccd469fe
Use hop limit instead of ttl
|
7 anni fa |
whitequark
|
7937011424
Extract socket handle into a new SocketMeta structure.
|
7 anni fa |
Dan Robertson
|
ef4af850e0
Add ICMP sockets
|
7 anni fa |
whitequark
|
0091191cce
Rework TcpSocket::{send,recv} to remove need for precomputing size.
|
7 anni fa |
whitequark
|
284db0099f
Small adjustments to TTL code; style, docs, and tests. NFCI.
|
7 anni fa |
Dan Robertson
|
fea462837d
Implement set_ttl for Tcp and Udp sockets
|
7 anni fa |
whitequark
|
8ee2f7bff5
Style fixes.
|
7 anni fa |
whitequark
|
100b57aa66
Replace "socket debug identifiers" with just socket handles.
|
7 anni fa |
whitequark
|
14355e15d0
RingBuffer::{empty,full}→is_{empty,full}.
|
7 anni fa |
Egor Karavaev
|
44cf21b91b
Factor out UdpSocket::accepts.
|
7 anni fa |
whitequark
|
fb05226a62
Refactor the "continuous" ring buffer interface.
|
7 anni fa |
whitequark
|
39464a53fc
Compute soft deadline in poll() and use nonblocking sockets.
|
7 anni fa |
whitequark
|
43a547fb0c
Factor out packet parsing from Socket::process.
|
7 anni fa |
whitequark
|
3974dc780f
Get rid of unused arguments in Socket::{process,dispatch}.
|
7 anni fa |
whitequark
|
ab0eccd213
Get rid of IpPayload and indirection in Socket::dispatch.
|
7 anni fa |
whitequark
|
917f89e14b
Use FnOnce, not FnMut, in Socket::dispatch() functions.
|
7 anni fa |
whitequark
|
5e448db950
Remove IpEndpoint::accepts.
|
7 anni fa |
whitequark
|
7533542ba8
Fix warnings.
|
7 anni fa |
whitequark
|
265e6f6cb7
Add UdpSocket::is_open, similar to TcpSocket::is_open in function.
|
7 anni fa |
whitequark
|
0482afc2d8
Simplify signature of UdpSocket::send_slice.
|
7 anni fa |
whitequark
|
a1910baa91
Put the debug_id field first in sockets.
|
7 anni fa |
whitequark
|
492fe3e4b1
Rework and test UDP sockets.
|
7 anni fa |
whitequark
|
5bf64586cd
Get rid of Result<_, ()>.
|
7 anni fa |
whitequark
|
1a11e4db5a
Remove useless redundant tests.
|
7 anni fa |
whitequark
|
6bb9200c06
Annotate all simple getters with #[inline].
|
7 anni fa |