rcore-os / zCore

Zircon microkernel reimplemented in Rust.
MIT License
1.71k stars 208 forks source link

Refactor of the socket framework and fix the issue of UDP RTSP packet receiving #361

Closed elliott10 closed 2 years ago

elliott10 commented 2 years ago

Test camera module with UDP rtsp; Implemented FileLike for TCP and UDP; Binding FileLike trait to Socket trait; Modified the mut lock of Socket object; Clean up the socket code in linux process file; Adjust tcp/udp buffer and disable CRC check and keep FCS in rtl net driver; Fix getsocket syscall and add get_buffer_capacity interface; Fix socket deadlock problem in tcp/udp; Modified tcp/udp read write functions; Add poll() parameter; Add socket testcases: tcp/udp nonblock/block poll and modified current testcases;