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

Function NewSocket

cmd/run/socket/socket.go:31–35  ·  view source on GitHub ↗
(global *global.Global, tmpl *event.Event, inode *Inode, fd *fd.FD)

Source from the content-addressed store, hash-verified

29}
30
31func NewSocket(global *global.Global, tmpl *event.Event, inode *Inode, fd *fd.FD) *Socket {
32 sock := &Socket{global: global, tmpl: tmpl, Inode: inode, FD: fd}
33 inode.add(sock)
34 return sock
35}
36
37func CreateSocket(global *global.Global, tmpl *event.Event, domain int, typ int) (*Socket, error) {
38 if domain != unix.AF_INET && domain != unix.AF_INET6 {

Callers 4

handleFcntlMethod · 0.92
ImportInodeMethod · 0.92
CreateSocketFunction · 0.85
AcceptMethod · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected