Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DispLogger ¶
func DispLogger(dp *DispPkt)
func PktDispatcher ¶
func PktDispatcher(c snet.Conn, f DispatchFunc)
PktDispatcher listens on c, and calls f for every packet read. N.B. the DispPkt passed to f is reused, so applications should make a copy if this is a problem.
Types ¶
type DispatchFunc ¶
type DispatchFunc func(*DispPkt)
Click to show internal directories.
Click to hide internal directories.