Menu

#45 Define and use a constant for Default_Gnoga_Port

Ongoing
accepted
nobody
None
2022-12-08
2020-05-21
Rolf Ebert
No

Many other applications and frameworks already use port 8080 (or other similar numbers [8088, 8888, 8086, etc.]). I propose to have a constant Default_Gnoga_Port defined in gnoga.application that can easily be changed at a central location. Currently the magic numerber 8080 is spread throughout the code.

Discussion

  • Blady

    Blady - 2020-05-22

    Have you try to define optionnal Port parameter at init in your main?
    Like:
    Gnoga.Application.Singleton.Initialize (Main_Window, Port => My_Port);
    or
    Gnoga.Application.Multi_Connect.Initialize (Port => My_Port);

     
  • Blady

    Blady - 2021-02-10
    • status: open --> pending
     
  • Blady

    Blady - 2022-12-08

    Port can be now set at command line, added on dev_2.2 branch at commit.
    Example: --gnoga-port=8086
    Is it then ok for you?

     
  • Blady

    Blady - 2022-12-08
    • status: pending --> accepted
     

Log in to post a comment.