| 31 | ) |
| 32 | |
| 33 | type StreamClient struct { |
| 34 | Server net.Conn |
| 35 | cn []byte |
| 36 | ca cipher.AEAD |
| 37 | sn []byte |
| 38 | sa cipher.AEAD |
| 39 | RB []byte |
| 40 | WB []byte |
| 41 | Timeout int |
| 42 | network string |
| 43 | src string |
| 44 | dst string |
| 45 | } |
| 46 | |
| 47 | func NewStreamClient(network string, password []byte, src string, server net.Conn, timeout int, dst []byte) (Exchanger, error) { |
| 48 | if timeout != 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected