net.getServer() or node.closeServer()
Posted: Fri May 22, 2015 11:20 pm
If a server is created with
then the reference to the server is lost, for instance, because a file is reloaded, then there is no way to close that server or get access to it. If the server is not closed then it is not possible to create a new server without resetting the board.
Is it possible to add either net.getServer() that returns the server created by net.createServer(), or net.closeServer() that releases that server.
Code: Select all
server = net.createServer(net.TCP, 30)
server:listen(80)
then the reference to the server is lost, for instance, because a file is reloaded, then there is no way to close that server or get access to it. If the server is not closed then it is not possible to create a new server without resetting the board.
Is it possible to add either net.getServer() that returns the server created by net.createServer(), or net.closeServer() that releases that server.