Javascript is easy, a lot of people are confused between java and javascript what they think it's the same but it's not true.
btw, maks would you mind to use node.js to solve your problem with udp?
anyway:
Code:var udp = require('udp-request') var socket = udp() socket.on('request', function (request, peer) { console.log('request:', request.toString()) socket.response('echo: ' + request.toString(), peer) }) socket.listen(10000, function () { socket.request('hello', {port: 10000, host: '127.0.0.1'}, function (err, response) { console.log('response', response.toString()) socket.destroy() }) })
before to execute this, you need to do npm install, I don't know about UDP, what do you really except?
Results 1 to 30 of 97
Threaded View
-
03-17-2018
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)