Skip to content

Server console

Ushakov Michael (Ушаков Михаил) edited this page Jun 20, 2018 · 2 revisions

Console is a console app for running and stopping Tcp server (consider using FlexibleTcpServer). For more details see code here: https://github.com/MossbauerLab/TinyTcpServer/tree/master/Console/MossbauerLab.TinyTcpServer.Console Fully ready example Windows CMD script is here: https://github.com/MossbauerLab/TinyTcpServer/tree/master/Console/MossbauerLab.TinyTcpServer.Console/MossbauerLab.TinyTcpServer.Console/Examples, see runEcho.bat

There are following commands to server:

  • start server
    • if we are running server first time we should specify ip address, port and script and optionally server settings
    • --start --ipAddr=192.168.100.22 --port=3479 --script=..\scripts\SimpleFtp.cs
    • --start --ipAddr=192.168.100.22 --port=3479 --script=..\scripts\SimpleFtp.cs --settings=FtpSettings.txt --compilerOptions="FtpOptions.txt
    • if server was already ran, then it could be stopped and ran on the same ip address + port
    • we could run only inited or stopped server, and can't run already running.
  • stop server
    • we could stop only running server, stop command does not have any parameters:
    • --stop
  • restart server
    • restart works only for started server^
    • --restart
    • --restart --ipAddr=127.0.01 --port=9999
    • we can't specify new script or settings via restart
  • help, this is obvious: --help
  • quit, this is obvious: --quit
Clone this wiki locally