server/tcpserver.js
function addConnection(c){
		++connectionCount
		if(!connections){
			//console.log('WARNING: adding connection from destroyed server')
			c.destroy()
			return
		}
		connections.push(c)
		console.log('connections: ' + connectionCount)
	}
function addConnection(c){
		++connectionCount
		if(!connections){
			//console.log('WARNING: adding connection from destroyed server')
			c.destroy()
			return
		}
		connections.push(c)
		console.log('connections: ' + connectionCount)
	}
/* TODO implement reconnect timeout
var dyingConnections = []

var reconnectTimeoutHandle = setTimeout(function(){
var dead = []
var now = Date.now()
dyingConnections.forEach(function(c){
if(now - c.connectionLostTime > ReconnectPeriod){
}
})
},1000)