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

Function NewTCState

polyamide/device/traffic_control.go:99–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99func NewTCState() *TCState {
100 return &TCState{
101 priority: make([][]*TCElement, TcMaxPriority+1),
102 bouncePkts: make([]*TCElement, 0, conn.IdealBatchSize),
103 bounceBufs: make([][]byte, 0, conn.IdealBatchSize),
104 elemsForPeer: make(map[*Peer][]*TCElement),
105 }
106}
107
108func (device *Device) TCBatch(batch []*TCElement, tcs *TCState) {
109 for i, elem := range batch {

Callers 3

SendNylonBundleMethod · 0.92
RoutineReadFromTUNMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected