Alex Crawford
|
1cbc38d0ea
Clean up examples
|
4 年之前 |
Alex Crawford
|
323dfe2ab6
Use is_empty instead of length comparison
|
4 年之前 |
Dario Nieuwenhuis
|
1e40b934bf
Update to Rust 2018. Fixes #271
|
4 年之前 |
Alex Crawford
|
ccf6915186
Remove explicit calls to as_ref/as_mut
|
4 年之前 |
Dario Nieuwenhuis
|
a3d6c1a0de
Fix crash in server example due to returning length bigger than received buffer.
|
5 年之前 |
whitequark
|
185a0ca781
examples: remove the remaining panics on poll error.
|
6 年之前 |
Michal Podhradsky
|
917f259bae
Log and print poll errors instead of crashing the server
|
6 年之前 |
Dan Robertson
|
602724b285
Fix server example
|
6 年之前 |
Dan Robertson
|
72ef278471
Add Address Resolution for IPv6
|
7 年之前 |
whitequark
|
cd893e6ab6
fn PacketMetadata::empty() → const PacketMetadata::EMPTY.
|
7 年之前 |
whitequark
|
86c59fe344
Factor out storage::PacketBuffer from socket::UdpSocket.
|
7 年之前 |
Philipp Oppermann
|
58e534a2fb
Use separate metadata and payload buffers for UDP sockets.
|
7 年之前 |
Dan Robertson
|
c418b60b5d
Use time types in socket
|
7 年之前 |
Dan Robertson
|
8e74fce11d
Update examples to use time types
|
7 年之前 |
whitequark
|
3868dcdb14
Split `poll_at`/`poll_delay` out of `poll`.
|
7 年之前 |
Dan Robertson
|
ad56bacb56
Replace EthernetInterface::new with EthernetInterfaceBuilder.
|
7 年之前 |
whitequark
|
34c3a8c905
Rewrite the ARP cache to allow for flood protection and expiration.
|
7 年之前 |
Philipp Oppermann
|
4ae84ab36a
Store plain DeviceT instead of Managed<_> in EthernetInterface
|
7 年之前 |
whitequark
|
0091191cce
Rework TcpSocket::{send,recv} to remove need for precomputing size.
|
7 年之前 |
Egor Karavaev
|
096ce02ac4
Implement a SocketRef smart pointer to detect state changes.
|
7 年之前 |
whitequark
|
d88ef3c8d3
Drop the pretense that anyone cares about non-IP over Ethernet.
|
7 年之前 |
Egor Karavaev
|
331dc10780
Add support for IPv4 default gateway.
|
7 年之前 |
whitequark
|
6f5ae33501
Add a keep-alive and timeout demo to the examples.
|
7 年之前 |
whitequark
|
b7b4877a85
Fix an embarassing relative/absolute time mismatch in examples.
|
7 年之前 |
whitequark
|
49ed4ae5f3
Add a TCP data source endpoint to the server example.
|
7 年之前 |
whitequark
|
39464a53fc
Compute soft deadline in poll() and use nonblocking sockets.
|
7 年之前 |
whitequark
|
7533542ba8
Fix warnings.
|
7 年之前 |
whitequark
|
6bc6cc7af7
Implement fmt::Write for TcpSocket.
|
7 年之前 |
whitequark
|
265e6f6cb7
Add UdpSocket::is_open, similar to TcpSocket::is_open in function.
|
7 年之前 |
whitequark
|
492fe3e4b1
Rework and test UDP sockets.
|
7 年之前 |