alphaville / optimization-engine

Nonconvex embedded optimization: code generation for fast real-time optimization + ROS support
https://alphaville.github.io/optimization-engine/
Other
512 stars 53 forks source link

Find available port #114

Closed alphaville closed 4 years ago

alphaville commented 5 years ago

The user can specify a desired port with an option allow_free_port_discovery; when activated, OpEn will bind at the next available port. This will allow the user to start multiple OpEn TCP servers without the need to explicitly specify different port. Each port will be stored in the local YAML file of the solver, so the client will know at which port to bind.

When building a TCP server to run remotely, allow_free_port_discovery should be most probably disabled.

chutchi2 commented 4 years ago

@alphaville, lets do this

chutchi2 commented 4 years ago

@alphaville, i'm behind on stuff but i'm starting tonight

alphaville commented 4 years ago

@chutchi2 no worries. If you need to discuss anything, you can reach me on gitter tomorrow, or you can drop a comment here.