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

Method getSocket

cmd/run/engine/process/process.go:162–171  ·  view source on GitHub ↗
(fd int)

Source from the content-addressed store, hash-verified

160}
161
162func (p *Process) getSocket(fd int) (*socket.Socket, bool) {
163 p.mu.RLock()
164 defer p.mu.RUnlock()
165
166 s, ok := p.sockets[fd]
167 if !ok {
168 return nil, false
169 }
170 return s, ok
171}
172
173func (p *Process) getDeleteSocket(fd int) (*socket.Socket, bool) {
174 p.mu.Lock()

Callers 9

handleFcntlMethod · 0.95
handleBindMethod · 0.95
handleConnectMethod · 0.95
handleListenMethod · 0.95
handleAcceptMethod · 0.95
handleGetsockoptMethod · 0.95
handleSetsockoptMethod · 0.95
handleGetsocknameMethod · 0.95
handleGetpeernameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected