Method
NewConnectionTCP
(
connectedAddress string,
connectedPort uint32,
origAddress string,
origPort uint32,
closeFunc func() error,
)
Source from the content-addressed store, hash-verified
| 420 | } |
| 421 | |
| 422 | func (c *ForwardCtx) NewConnectionTCP( |
| 423 | connectedAddress string, |
| 424 | connectedPort uint32, |
| 425 | origAddress string, |
| 426 | origPort uint32, |
| 427 | closeFunc func() error, |
| 428 | ) (io.ReadWriteCloser, error) { |
| 429 | return c.newConnection( |
| 430 | PROTOCOL_TCP, |
| 431 | connectedAddress, |
| 432 | connectedPort, |
| 433 | origAddress, |
| 434 | origPort, |
| 435 | closeFunc, |
| 436 | ) |
| 437 | } |
| 438 | |
| 439 | func (c *ForwardCtx) NewConnectionUnix( |
| 440 | path string, |