| 31 | ) |
| 32 | |
| 33 | func NewChannelBinds() [2]conn.Bind { |
| 34 | arx4 := make(chan []byte, 8192) |
| 35 | brx4 := make(chan []byte, 8192) |
| 36 | arx6 := make(chan []byte, 8192) |
| 37 | brx6 := make(chan []byte, 8192) |
| 38 | var binds [2]ChannelBind |
| 39 | binds[0].rx4 = &arx4 |
| 40 | binds[0].tx4 = &brx4 |
| 41 | binds[1].rx4 = &brx4 |
| 42 | binds[1].tx4 = &arx4 |
| 43 | binds[0].rx6 = &arx6 |
| 44 | binds[0].tx6 = &brx6 |
| 45 | binds[1].rx6 = &brx6 |
| 46 | binds[1].tx6 = &arx6 |
| 47 | binds[0].target4 = ChannelEndpoint(1) |
| 48 | binds[1].target4 = ChannelEndpoint(2) |
| 49 | binds[0].target6 = ChannelEndpoint(3) |
| 50 | binds[1].target6 = ChannelEndpoint(4) |
| 51 | binds[0].source4 = binds[1].target4 |
| 52 | binds[0].source6 = binds[1].target6 |
| 53 | binds[1].source4 = binds[0].target4 |
| 54 | binds[1].source6 = binds[0].target6 |
| 55 | return [2]conn.Bind{&binds[0], &binds[1]} |
| 56 | } |
| 57 | |
| 58 | func (c ChannelEndpoint) ClearSrc() {} |
| 59 | |