MCPcopy Create free account
hub / github.com/encodeous/nylon / Open

Method Open

polyamide/conn/conn.go:38–38  ·  view source on GitHub ↗

Open puts the Bind into a listening state on a given port and reports the actual port that it bound to. Passing zero results in a random selection. fns is the set of functions that will be called to receive packets.

(port uint16)

Source from the content-addressed store, hash-verified

36 // port that it bound to. Passing zero results in a random selection.
37 // fns is the set of functions that will be called to receive packets.
38 Open(port uint16) (fns []ReceiveFunc, actualPort uint16, err error)
39
40 // Close closes the Bind listener.
41 // All fns returned by Open must return net.ErrClosed after a call to Close.

Callers 14

BindMethod · 0.65
mainFunction · 0.65
OpenMethod · 0.65
OpenMethod · 0.65
CreateTUNFunction · 0.65
BindUpdateMethod · 0.65
RoutineDecryptionMethod · 0.65
TestNoiseHandshakeFunction · 0.65
ConsumeReplyMethod · 0.65

Implementers 5

StdNetBindpolyamide/conn/bind_std.go
WinRingBindpolyamide/conn/bind_windows.go
ChannelBind2polyamide/conn/bindtest/bindtest2.go
ChannelBindpolyamide/conn/bindtest/bindtest.go
fakeBindSizedpolyamide/device/device_test.go

Calls

no outgoing calls

Tested by 2

TestNoiseHandshakeFunction · 0.52