(message, proxyInfo)
| 261 | } |
| 262 | |
| 263 | function send (message, proxyInfo) { |
| 264 | if (proxyInfo) { |
| 265 | const pack = Socks.createUDPFrame({ host: hostname, port }, message) |
| 266 | socket.send(pack, 0, pack.length, proxyInfo.port, proxyInfo.host) |
| 267 | } else { |
| 268 | socket.send(message, 0, message.length, port, hostname) |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | function announce (connectionId, opts) { |
| 273 | transactionId = genTransactionId() |
no outgoing calls
no test coverage detected