You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
It doesn't matter the port #. I had this working on a different Linux box with the same setup. I have an http server in the same thread on a 1 second delayed start up that works fine. I'm starting nodejs with SU. Is there something obviously broken here?
var net = require("net"),
TCP_sock,
TCP_port = 2950,
TCP_host = 'localhost',
TCP_socket = net.createConnection(TCP_port, TCP_host);
TCP_socket.on('data', takeData)
.on('connect', function(sock) {
TCP_sock = sock;
console.log("\033[60A\033[18B" + 'connected on port: ' + TCP_port + ' of ' + TCP_host);
})
.on('error',function(e){
console.log("\033[60A\033[17B" + 'Failed to connect on port: ' + TCP_port + ' of ' + TCP_host);
console.log("\033[60A\033[18B--" + e);
})
.on('end', function() {
console.log('closed');
});
function takeData(wpinfo){
console.log("Waypoint info:" + wpinfo);
}
The text was updated successfully, but these errors were encountered:
It doesn't matter the port #. I had this working on a different Linux box with the same setup. I have an http server in the same thread on a 1 second delayed start up that works fine. I'm starting nodejs with SU. Is there something obviously broken here?
The text was updated successfully, but these errors were encountered: