MCPcopy
hub / github.com/txthinking/brook / In

Method In

packetconn.go:79–87  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

77}
78
79func (c *PacketConn) In(b []byte) error {
80 select {
81 case c.InCh <- b:
82 return nil
83 case <-c.Done:
84 return errors.New("closed")
85 }
86 return nil
87}
88
89func (c *PacketConn) Read(b []byte) (int, error) {
90 if c.First != nil {

Callers 3

HandleMethod · 0.80
HandleMethod · 0.80
HandleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected