Lines Matching refs:new
87 let socket_addr = SocketAddrV6::new( in client()
125 static CLIENT_DONE: AtomicBool = AtomicBool::new(false);
137 let device = RawSocket::new("wpan1", Medium::Ieee802154).unwrap(); in main()
150 let mut config = Config::new(); in main()
156 let mut iface = Interface::new(config, &mut device); in main()
159 .push(IpCidr::new( in main()
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()
174 let mut sockets = SocketSet::new(vec![]); in main()