nthallen / monarch

Monarch Data Acquisition System
0 stars 1 forks source link

Session-specific Sockets #119

Closed nthallen closed 3 years ago

nthallen commented 4 years ago

This option allows for the creation of local session-specific servers. This is necessary to allow doit scripts targeting remote FlightNodes to run local memo and playbacksrvr instances to offload noise on the FlightNode and facilitate independent startup and shutdown of the user interfaces. While it is possible to run a local server, there is risk of collision if two or more GSE instances are run on the same machine at the same time. This is quite likely when a local user and a remote user are both displaying realtime data.

Strategy:

Need to sort out exactly how options would work.

Specifically, display programs need to access:

So, how to setup options?:

nthallen commented 4 years ago

A different take on that last option would be tie the hostname to an application-specific function. The function could be the service name, if that is obvious, but might be something else if, for example, you need to distinguish between subservices. Suppose you have an application that needs to send commands to one hostname but wants to receive a Quit command from another. The app could define 'send' for the former function and 'recv' for the latter.