Feature set cl message#3727
Conversation
|
Could you please also check which protocol messages could be replaced by this? |
|
My view is that it's exposing the operating state of the Server. If you're running with the UI or using JSONRPC, some state can change (one day, it'll all be controllable, hopefully). However, it's not for large blocks of data: client list, welcome message, etc. I see it as providing answers to questions a Client user might have about Server capabilities (I also favour using that term) - so on/off states. That's why I think it should be stuff that gets shown on the Connect Dialog (although I'm thinking of a "toggle extra connect info" option in Advanced Settings). |
|
Ok. Can it be used by the client to to enable/disable certain features such as raw audio? |
Yes, I agree. I plan to add a separate protocol request to fetch the welcome message. Would be useful for Explorer, and we could add a means within the Connect Dialog to right-click on a host and view the welcome message. |
I'm not sure that's very useful, and may add significant complication for some features, which set up things at initialisation time. I would treat this PR as just a way of exposing information, and any means of control could be investigated and proposed as a subsequent PR. |
2abdc4a to
6dd6cc4
Compare
I don't know if the style check is right this time... |
|
I'd suggest adding two flags to see if the server
any objections? |
What OS do you do your dev on? If you have |
8caf060 to
139c0fc
Compare
I use kate on arch. I just used the "format" feature of the built-in LSP-client for the first time 👍 |
|
Would be good if you can install |
Yes, that file is used by kate. I just ran |
It may depend on which version of |
Ah, I'm on |
|
The Could that become an issue when not updated or is only the comment outdated? |
Both make sense to me. I'd actually thought of the licence one myself and forgot to add it! |
|
How about:
|
I don't think these are relevant to the use case.
|
|
Anyone got anything pending on this? |
|
Review wise it seems good (we can always add new messages). But we may want to think about where in the client to use this. |
| // // RPC interface enabled? (argument --jsonrpcport) | ||
| // iFeatures |= ( << FS_RPC_ENABLED ); | ||
|
|
||
| // qDebug() << QString::number(iFeatures, 2).rightJustified(32, '0'); |
There was a problem hiding this comment.
I'd like to leave this in for the moment for documentation purposes. This is supposed to be used for possible future enhancements and I think the comments reflect that well enough.
ann0see
left a comment
There was a problem hiding this comment.
Testing with wireshark seems to show that e.g. -L does not get correctly encoded. We might just send one byte over the wire.
Ouch, I got that terribly wrong. Fixed |
Yes, I found that too, but am still testing. I have a couple of other minor comments. Will post my review soon. |
softins
left a comment
There was a problem hiding this comment.
A few minor points of style, but other than that, this looks good, and I've tested it.
Thanks for your suggestions! Applied :) |
|
... and the comments for the #defines in protocol.h :) |
Fixed 🤣 |
|
Should I rebase or squash or both? |
Probably worth combining the many small commits, so I guess it's a good idea rebasing to current |
Apply suggestions from code-review Co-authored-by: Tony Mountifield <tony@mountifield.org>
b144b8c to
12b54f4
Compare
|
Merging (I can't approve the PR as I raised it, even though it's @dingodoppelt's code). |
Short description of changes
Adds two new connection-less protocol messages, one to request and one to return server features.
CHANGELOG: Request and receive server features by connection-less message
Context: Fixes an issue?
Fixes 3710
Does this change need documentation? What needs to be documented and how?
Yes. See below. Will also need updates to Client and Server documentation.
Status of this Pull Request
Proof of concept. Needs:
What is missing until this pull request can be merged?
See above.
Checklist