| 31 | ) |
| 32 | |
| 33 | type StreamServer struct { |
| 34 | Client 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 NewStreamServer(password []byte, src string, client net.Conn, timeout, udptimeout int) (Exchanger, error) { |
| 48 | if timeout != 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected