/smoltcp-0.9.1/examples/ |
D | server.rs | 9 use smoltcp::socket::{tcp, udp}; 65 let tcp1_rx_buffer = tcp::SocketBuffer::new(vec![0; 64]); in main() 66 let tcp1_tx_buffer = tcp::SocketBuffer::new(vec![0; 128]); in main() 67 let tcp1_socket = tcp::Socket::new(tcp1_rx_buffer, tcp1_tx_buffer); in main() 69 let tcp2_rx_buffer = tcp::SocketBuffer::new(vec![0; 64]); in main() 70 let tcp2_tx_buffer = tcp::SocketBuffer::new(vec![0; 128]); in main() 71 let tcp2_socket = tcp::Socket::new(tcp2_rx_buffer, tcp2_tx_buffer); in main() 73 let tcp3_rx_buffer = tcp::SocketBuffer::new(vec![0; 65535]); in main() 74 let tcp3_tx_buffer = tcp::SocketBuffer::new(vec![0; 65535]); in main() 75 let tcp3_socket = tcp::Socket::new(tcp3_rx_buffer, tcp3_tx_buffer); in main() [all …]
|
D | loopback.rs | 14 use smoltcp::socket::tcp; 104 let tcp_rx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_SERVER_RX_DATA[..] }); in main() 105 let tcp_tx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_SERVER_TX_DATA[..] }); in main() 106 tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer) in main() 112 let tcp_rx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_CLIENT_RX_DATA[..] }); in main() 113 let tcp_tx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_CLIENT_TX_DATA[..] }); in main() 114 tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer) in main() 128 let mut socket = sockets.get_mut::<tcp::Socket>(server_handle); in main() 146 let mut socket = sockets.get_mut::<tcp::Socket>(client_handle); in main()
|
D | benchmark.rs | 14 use smoltcp::socket::tcp; 83 let tcp1_rx_buffer = tcp::SocketBuffer::new(vec![0; 65535]); in main() 84 let tcp1_tx_buffer = tcp::SocketBuffer::new(vec![0; 65535]); in main() 85 let tcp1_socket = tcp::Socket::new(tcp1_rx_buffer, tcp1_tx_buffer); in main() 87 let tcp2_rx_buffer = tcp::SocketBuffer::new(vec![0; 65535]); in main() 88 let tcp2_tx_buffer = tcp::SocketBuffer::new(vec![0; 65535]); in main() 89 let tcp2_socket = tcp::Socket::new(tcp2_rx_buffer, tcp2_tx_buffer); in main() 116 let socket = sockets.get_mut::<tcp::Socket>(tcp1_handle); in main() 134 let socket = sockets.get_mut::<tcp::Socket>(tcp2_handle); in main()
|
D | sixlowpan_benchmark.rs | 51 use smoltcp::socket::tcp; 166 let tcp1_rx_buffer = tcp::SocketBuffer::new(vec![0; 4096]); in main() 167 let tcp1_tx_buffer = tcp::SocketBuffer::new(vec![0; 4096]); in main() 168 let tcp1_socket = tcp::Socket::new(tcp1_rx_buffer, tcp1_tx_buffer); in main() 170 let tcp2_rx_buffer = tcp::SocketBuffer::new(vec![0; 4096]); in main() 171 let tcp2_tx_buffer = tcp::SocketBuffer::new(vec![0; 4096]); in main() 172 let tcp2_socket = tcp::Socket::new(tcp2_rx_buffer, tcp2_tx_buffer); in main() 188 let socket = sockets.get_mut::<tcp::Socket>(tcp1_handle); in main() 204 let socket = sockets.get_mut::<tcp::Socket>(tcp2_handle); in main()
|
D | client.rs | 9 use smoltcp::socket::tcp; 60 let tcp_rx_buffer = tcp::SocketBuffer::new(vec![0; 1500]); in main() 61 let tcp_tx_buffer = tcp::SocketBuffer::new(vec![0; 1500]); in main() 62 let tcp_socket = tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer); in main() 66 let socket = sockets.get_mut::<tcp::Socket>(tcp_handle); in main() 76 let socket = sockets.get_mut::<tcp::Socket>(tcp_handle); in main()
|
D | sixlowpan.rs | 51 use smoltcp::socket::tcp; 91 let tcp_rx_buffer = tcp::SocketBuffer::new(vec![0; 4096]); in main() 92 let tcp_tx_buffer = tcp::SocketBuffer::new(vec![0; 4096]); in main() 93 let tcp_socket = tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer); in main() 99 let socket = sockets.get_mut::<tcp::Socket>(tcp_handle); in main() 135 let socket = sockets.get_mut::<tcp::Socket>(tcp_handle); in main()
|
D | httpclient.rs | 10 use smoltcp::socket::tcp; 60 let tcp_rx_buffer = tcp::SocketBuffer::new(vec![0; 1024]); in main() 61 let tcp_tx_buffer = tcp::SocketBuffer::new(vec![0; 1024]); in main() 62 let tcp_socket = tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer); in main() 78 let socket = sockets.get_mut::<tcp::Socket>(tcp_handle); in main()
|
/smoltcp-0.9.1/fuzz/fuzz_targets/ |
D | tcp_headers.rs | 5 use smoltcp::socket::tcp; 148 let tcp_rx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_SERVER_RX_DATA[..] }); 149 let tcp_tx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_SERVER_TX_DATA[..] }); 150 tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer) 156 let tcp_rx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_CLIENT_RX_DATA[..] }); 157 let tcp_tx_buffer = tcp::SocketBuffer::new(unsafe { &mut TCP_CLIENT_TX_DATA[..] }); 158 tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer) 173 let mut socket = socket_set.get::<tcp::Socket>(server_handle); 188 let mut socket = socket_set.get::<tcp::Socket>(client_handle);
|
/smoltcp-0.9.1/.github/workflows/ |
D | test.yml | 39 - std medium-ethernet proto-ipv4 socket-udp socket-tcp socket-dns 42 - std medium-ethernet proto-ipv6 socket-tcp 43 - std medium-ethernet medium-ip proto-ipv4 socket-icmp socket-tcp 44 - std medium-ip proto-ipv6 socket-icmp socket-tcp 47 - std medium-ip proto-ipv4 proto-ipv6 socket-tcp socket-udp 50 …um-ip medium-ieee802154 proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp socket-… 55 … features: alloc medium-ethernet proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp 77 …proto-ipv6 proto-ipv6 proto-igmp proto-dhcpv4 socket-raw socket-udp socket-tcp socket-icmp socket-… 78 …proto-ipv6 proto-ipv6 proto-igmp proto-dhcpv4 socket-raw socket-udp socket-tcp socket-icmp socket-… 79 …proto-ipv6 proto-ipv6 proto-igmp proto-dhcpv4 socket-raw socket-udp socket-tcp socket-icmp socket-…
|
/smoltcp-0.9.1/ |
D | CHANGELOG.md | 50 - socket/tcp: Do not reset socket-level settings, such as keepalive, on reset (#603) 51 - socket/tcp: ensure we always accept the segment at offset=0 even if the assembler is full. (#735,… 52 - socket/tcp: Refactored assembler, now more robust and faster (#726, #735) 67 - tcp: Fix return value of nagle_enable ([#642](https://github.com/smoltcp-rs/smoltcp/pull/642)) 68 - tcp: Only clear retransmit timer when all packets are acked ([#662](https://github.com/smoltcp-rs… 69 - tcp: Send incomplete fin packets even if nagle enabled ([#665](https://github.com/smoltcp-rs/smol… 138 - tcp: fix "subtract sequence numbers with underflow" on remote window shrink. ([#490](https://gith… 139 - tcp: fix substract with overflow when receiving a SYNACK with unincremented ACK number. ([#491](h… 140 - tcp: use nonzero initial sequence number to workaround misbehaving servers. ([#492](https://githu… 152 - tcp rtte: fix "attempt to multiply with overflow". ([#476](https://github.com/smoltcp-rs/smoltcp/… [all …]
|
D | Cargo.toml | 12 keywords = ["ip", "tcp", "udp", "ethernet", "network"] 59 "socket-tcp" = ["socket"] 73 …"socket-raw", "socket-icmp", "socket-udp", "socket-tcp", "socket-dhcpv4", "socket-dns", "socket-md… 229 …, "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-ipv6", "socket-tcp"] 237 …, "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"] 241 …, "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-tcp", "socket-udp"] 245 required-features = ["log", "medium-ethernet", "proto-ipv4", "socket-tcp"]
|
D | README.md | 200 ### Features `socket-raw`, `socket-udp`, `socket-tcp`, `socket-icmp`, `socket-dhcpv4`, `socket-dns` 523 …example still requires the `alloc` feature to run, as well as `log`, `proto-ipv4` and `socket-tcp`. 528 cargo run --example loopback --no-default-features --features="log proto-ipv4 socket-tcp alloc"
|
/smoltcp-0.9.1/src/socket/ |
D | mod.rs | 26 pub mod tcp; module 67 Tcp(tcp::Socket<'a>), 137 from_socket!(tcp::Socket<'a>, Tcp);
|
/smoltcp-0.9.1/src/phy/ |
D | mod.rs | 173 pub tcp: Checksum, field 187 tcp: Checksum::None, in ignored()
|
/smoltcp-0.9.1/src/wire/ |
D | mod.rs | 125 mod tcp; module 241 pub use self::tcp::{
|
D | tcp.rs | 808 if checksum_caps.tcp.rx() && !packet.verify_checksum(src_addr, dst_addr) { in parse() 964 if checksum_caps.tcp.tx() { in emit()
|
/smoltcp-0.9.1/src/iface/interface/ |
D | mod.rs | 1129 tcp: crate::phy::Checksum::Both, in mock() 1436 .filter_map(|i| tcp::Socket::downcast_mut(&mut i.socket)) in process_tcp() 1450 Some(IpPacket::Tcp(tcp::Socket::rst_reply(&ip_repr, &tcp_repr))) in process_tcp()
|