compio-rs / compio

A thread-per-core Rust runtime with IOCP/io_uring/polling.
MIT License
420 stars 37 forks source link

refactor: change SockAddr return type to SocketAddr #100

Closed Sherlock-Holo closed 1 year ago

Sherlock-Holo commented 1 year ago

SockAddr can be a tcp/udp socket addr, unix domain socket addr or others

but when using tcp/udp, the SockAddr is always ip+port, if users want to get the ip or port, or pass the addr to other other place which need a SocketAddr, user need to convert it to SocketAddr manually, so change tcp/udp addr type to SocketAddr