You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine the scenario when every terminal needs its own class instance to interact and other sessions are not allowed to modified or even access others.
One menu command could be something like this:
rootMenu->Insert(
"free_function",
[](std::ostream& out){
auto myID = get_unique_terminal_id();
auto my_instance = dict[myID];
my_instance.foo();
},
"Call foo function on my private space" );
As you can see, we only need a function or a variable that returns the terminal unique id.
Is this possible?
Does telnet server provide this kind of feature?
Hi @iscapla ,
thank you for your suggestion.
Unfortunately, the library does not provide this feature, yet.
However, it would be a nice feature to have: it should be added to the development plan.
Please check issue #49 and tell us if it's the same request.
Hi @daniele77 ,
Yes, I think so.
To be able to interact with a concrete terminal you also need something to identify it. Maybe a general handler that maintains the unique identifier (something similar to how sockets or files work), and other stuff directly related to this terminal.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello,
Imagine the scenario when every terminal needs its own class instance to interact and other sessions are not allowed to modified or even access others.
One menu command could be something like this:
As you can see, we only need a function or a variable that returns the terminal unique id.
Is this possible?
Does telnet server provide this kind of feature?
Thanks.
All reactions