Home
last modified time | relevance | path

Searched refs:tcp (Results 1 – 17 of 17) sorted by relevance

/smoltcp-0.9.1/examples/
Dserver.rs9 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 …]
Dloopback.rs14 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()
Dbenchmark.rs14 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()
Dsixlowpan_benchmark.rs51 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()
Dclient.rs9 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()
Dsixlowpan.rs51 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()
Dhttpclient.rs10 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/
Dtcp_headers.rs5 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/
Dtest.yml39 - 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/
DCHANGELOG.md50 - 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 …]
DCargo.toml12 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"]
DREADME.md200 ### 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/
Dmod.rs26 pub mod tcp; module
67 Tcp(tcp::Socket<'a>),
137 from_socket!(tcp::Socket<'a>, Tcp);
/smoltcp-0.9.1/src/phy/
Dmod.rs173 pub tcp: Checksum, field
187 tcp: Checksum::None, in ignored()
/smoltcp-0.9.1/src/wire/
Dmod.rs125 mod tcp; module
241 pub use self::tcp::{
Dtcp.rs808 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/
Dmod.rs1129 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()