()
| 312 | } |
| 313 | |
| 314 | func (pf *PortForwarder) nextRequestID() int { |
| 315 | pf.requestIDLock.Lock() |
| 316 | defer pf.requestIDLock.Unlock() |
| 317 | id := pf.requestID |
| 318 | pf.requestID++ |
| 319 | return id |
| 320 | } |
| 321 | |
| 322 | // handleConnection copies data between the local connection and the stream to |
| 323 | // the remote server. |