Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
udp unix socket
leopardlinger
我用ngx.socket.udp()建立unix socket,sock:setpeername('/tmp/unixudp.sock'),自己写了C写了一个简单对端来接发数据。
我用recvfrom()函数可以接收到数据,但是clientaddr打印出来却是空,我看官方文档写了linux上setpeername可以利用“autobind”的特性可以绑定客户端地址,为什么我没有打印出来?
求解答