Write wraps the underlying ReadWriteCloser's Write method and keeps the session alive with the "output" traffic type.
(p []byte)
| 427 | |
| 428 | // Write wraps the underlying ReadWriteCloser's Write method and keeps the session alive with the "output" traffic type. |
| 429 | func (t *trafficMonitor) Write(p []byte) (n int, err error) { |
| 430 | t.fwd.KeepAlive(trafficTypeOutput) |
| 431 | return t.rwc.Write(p) |
| 432 | } |
| 433 | |
| 434 | // Close closes the underlying ReadWriteCloser. |
| 435 | func (t *trafficMonitor) Close() error { |