MCPcopy Index your code
hub / github.com/subtrace/subtrace / BindAddr

Method BindAddr

cmd/run/socket/socket.go:464–471  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

462}
463
464func (s *Socket) BindAddr() (netip.AddrPort, syscall.Errno, error) {
465 if !s.FD.IncRef() {
466 return netip.AddrPort{}, unix.EBADF, nil
467 }
468 defer s.FD.DecRef()
469
470 return s.Inode.state.Load().getRemoteBindAddr()
471}
472
473func (s *Socket) PeerAddr() (netip.AddrPort, syscall.Errno, error) {
474 if !s.FD.IncRef() {

Callers 1

handleGetsocknameMethod · 0.80

Calls 4

IncRefMethod · 0.80
DecRefMethod · 0.80
getRemoteBindAddrMethod · 0.80
LoadMethod · 0.80

Tested by

no test coverage detected