Author Topic: [done] Allow specifying server to connect to on CLI with better syntax  (Read 635 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Currently you need to use this to connect to a headless server at 123.123.123.123 which is not running on the standard port but on port 12345:
Code: [Select]
megaglest --connecthost=123.123.123.123 --use-ports=12345,61357
This works, but is a bit of a crude syntax. It would be nice if IP address and port # could be sepcified in a single parameter, separated by a colon, like this:
Code: [Select]
megaglest --connect 123.123.123.123:12345(syntax partially stolen from OpenSSL)

Edit (tomreyn):
With no colon and port # provided, assume default port (61357).
« Last Edit: 26 September 2012, 01:27:25 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Allow specifying server to connect to on CLI with better syntax
« Reply #1 on: 25 September 2012, 21:52:26 »
- added in svn

 

anything