Skip to content

Support a single client connecting to multiple servers/processes#248

Open
VelorumS wants to merge 4 commits intoCeltoys:mainfrom
Anatoscope:feat/multi-server
Open

Support a single client connecting to multiple servers/processes#248
VelorumS wants to merge 4 commits intoCeltoys:mainfrom
Anatoscope:feat/multi-server

Conversation

@VelorumS
Copy link
Copy Markdown

Uses address patterns like ws:/127.0.0.1:1781{5,6}/rmt to connect to multiple servers. Shows thread names with the 0_, 1_... prefixes depending on the server of origin. Sends console input to the first server.

Added GSST and SSST messages for retrieving the starting timepoints from the servers.

Copy-pasted the https://github.com/juliangruber/balanced-match and https://github.com/juliangruber/brace-expansion to get the address pattern parsing.

Not sure if it works for the Processor Timelines.

Fixes #134

@dwilliamson
Copy link
Copy Markdown
Collaborator

Thank you for this PR. I will have a close look at its implications.

Not to worry about processor timeline view, as long as it doesn't break.

Comment thread lib/Remotery.c
case FOURCC('G', 'S', 'S', 'T'): {
Buffer* bin_buf = rmt->server->bin_buf;
WebSocket_PrepareBuffer(bin_buf);
bin_SamplesStart(bin_buf, rmt->timer.counter_start);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why any of the tests aren't picking this up, but this should be rmt->timer.counter_start.QuadPart.

@dwilliamson
Copy link
Copy Markdown
Collaborator

I'm trying to test the processor view right now but it doesn't actually appear to be working on the laptop I'm testing on, so I may have to debug that first before I get any further with testing this.

Copy link
Copy Markdown
Collaborator

@dwilliamson dwilliamson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With these changes, the processor view has lost its colours. I haven't verified if the processor view values are actually accurate.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support a single client connecting to multiple servers/processes

2 participants