Saturday, 5 May 2018

Just noticed two client sockets can connect to one another if started simultaneously. Is this typical socket behavior and will it persist in future versions of node.

I may have a use for it. Thanks.On Box Avar net = require('net'); var boxA = new net.Socket(); boxA.connect({ port: '50601', host: '192.168.1.26', localPort: '50600' },()=>{}); On Box Bvar net = require('net'); var boxB = new net.Socket(); boxB.connect({ port: '50600', host: '192.168.1.25', localPort: '50601' },()=>{});

Submitted May 05, 2018 at 05:54AM by ntz54

No comments:

Post a Comment