()
| 471 | } |
| 472 | |
| 473 | func (s *Socket) PeerAddr() (netip.AddrPort, syscall.Errno, error) { |
| 474 | if !s.FD.IncRef() { |
| 475 | return netip.AddrPort{}, unix.EBADF, nil |
| 476 | } |
| 477 | defer s.FD.DecRef() |
| 478 | |
| 479 | return s.Inode.state.Load().getRemotePeerAddr() |
| 480 | } |
| 481 | |
| 482 | func (s *Socket) Errno() unix.Errno { |
| 483 | if !s.FD.IncRef() { |
no test coverage detected