Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyBuffer ¶
borrowed from the official go io package with some changes to support throughput metrics
func CopyConn ¶
func CopyConn(c1 io.ReadWriteCloser, c2 io.ReadWriteCloser)
CopyConn copy packets from c1 to c2 and viceversa
func CopyConnWithOnClose ¶
func CopyConnWithOnClose( c1 io.ReadWriteCloser, c2 io.ReadWriteCloser, metrics bool, onClose func()) chan int64
CopyConnWithOnClose copy packets from c1 to c2 and viceversa. Calls the onClose function when the connection is interrupted
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.