Made plaintcp a bit more flexible and present the port number to handlers.