MCPcopy
hub / github.com/webtorrent/bittorrent-tracker / send

Method send

lib/client/udp-tracker.js:263–270  ·  view source on GitHub ↗
(message, proxyInfo)

Source from the content-addressed store, hash-verified

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()

Callers 3

onUdpRequestMethod · 0.80
_onWebSocketRequestMethod · 0.80
_sendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected