()
| 514 | } |
| 515 | |
| 516 | func (c *ForwardCtx) init() { |
| 517 | c.connMap = make(map[uint64]*Connection) |
| 518 | c.connectionChannel = make(chan *Connection) |
| 519 | |
| 520 | c.encoder = cbor.NewEncoder(c.toBackend) |
| 521 | c.decoder = cbor.NewDecoder(c.fromBackend) |
| 522 | } |
| 523 | |
| 524 | func (c *ForwardCtx) StartClient() (connectionType uint32, setupPacket SetupPacket, connChan chan *Connection, err error) { |
| 525 | c.init() |
no outgoing calls
no test coverage detected