MCPcopy
hub / github.com/google/gvisor / Socket

Method Socket

pkg/sentry/socket/socket.go:314–314  ·  view source on GitHub ↗

Socket creates a new socket. If a nil Socket _and_ a nil error is returned, it means that the protocol is not supported. A non-nil error should only be returned if the protocol is supported, but an error occurs during creation.

(t *kernel.Task, stype linux.SockType, protocol int)

Source from the content-addressed store, hash-verified

312 // protocol is not supported. A non-nil error should only be returned
313 // if the protocol is supported, but an error occurs during creation.
314 Socket(t *kernel.Task, stype linux.SockType, protocol int) (*vfs.FileDescription, *syserr.Error)
315
316 // Pair creates a pair of connected sockets.
317 //

Callers 15

connectFunction · 0.65
GetMTUFunction · 0.65
setupFunction · 0.65
StartMethod · 0.65
NewFunction · 0.65
queryFDFunction · 0.65
SocketMethod · 0.65
doNetlinkRouteRequestFunction · 0.65
NewFunction · 0.65
newClosedSocketFunction · 0.65
socketFunction · 0.65
TestSetNegOneFunction · 0.65

Calls

no outgoing calls

Tested by 6

newClosedSocketFunction · 0.52
TestSetNegOneFunction · 0.52
TestFileDotFileFunction · 0.52
setupMethod · 0.52
setupMethod · 0.52
setupMethod · 0.52