dad85434a4
Merge pull request #2 from ishbosamiya/correct_timeout_handling
...
fix: timeout value is overridden by rcv_from()
2022-02-08 08:25:05 -05:00
ishbosamiya
65ef9acf45
examples: fix examples for recent change to socket timeout
2022-02-08 13:10:02 +05:30
ishbosamiya
b30dfb48bd
socket: fix: socket timeout handling
...
rcv_from() would always overwrite the timeout parameter set by the
user.
Instead of setting the timeout within the socket when set_timeout() is
called, store the timeout information within the options (along with
hops) and read that data when the sockets timeout is actually set in
rcv_from().
2022-02-08 13:06:35 +05:30
d5672b00c6
Merge pull request #1 from zaphar/socket2v0.4
...
Update to the v0.4x branch of socket2
v0.1.2
2022-02-02 23:14:13 -05:00
3b5f3f9a25
Update to the v0.4x branch of socket2
2022-02-02 23:07:24 -05:00
5a00edf5e8
Update readme and docs
2022-02-02 22:48:32 -05:00
2dda318253
Bump Version
2021-02-04 17:13:34 -05:00
6eb42ddf36
Add other traits for packet construction
2021-02-01 18:18:08 -05:00
3a73734015
Better timeout management in the API
2021-02-01 17:13:55 -05:00
e331d94a26
Expose errors when setting timeouts
2021-02-01 17:06:23 -05:00
dc13a70e4a
Prepare for crates.io publishing
v0.1.0
2021-01-31 09:18:38 -05:00
42e39a621f
Add rcv_with_timeout to the interface
2021-01-30 21:46:21 -05:00
37f3651995
We need the sockaddr from rcv_from
2021-01-30 12:50:57 -05:00
b85822c95d
Fix binding of socket for examples
2021-01-27 20:49:48 -05:00
931113a868
Reuse the buffer for receives
2021-01-27 20:38:24 -05:00
fc35908cb3
Examples can take an argument now
2021-01-27 19:34:51 -05:00
a7079afbc4
More ergonomics and some packet parsing bug fixes
2021-01-27 19:13:44 -05:00
5a7287f10c
Refactor API for more ergonomic usage
2021-01-25 21:23:24 -05:00
d3e0dfa344
Add ICMPv4 Packet parsing
2021-01-25 20:35:34 -05:00
6de7e27242
cargo fmt
2021-01-25 19:50:40 -05:00
e850bf0236
rcv_from returns a packet instead of filling a buffer
2021-01-25 19:00:09 -05:00
8971625151
More unit tests and a bugfix for echo packet construction
2021-01-16 15:10:38 -05:00
f49a16c2f6
Example and some debugging
2021-01-16 13:45:12 -05:00
07d8ee676a
Fix bug in packet parsing and ip_to_socket
2021-01-14 19:24:14 -05:00
89f866f4c0
Plug new packet parser into socket and echo apis
2021-01-13 20:27:51 -05:00
3ac3c8ed4b
Roll our own ICMPv6 Packet parser
2021-01-12 21:10:11 -05:00
5ebac54422
Initial Skeleton of an ICMP Socket
2021-01-08 16:01:53 -05:00