P
P
phoboson2017-09-25 23:02:53
C++ / C#
phoboson, 2017-09-25 23:02:53

How to call a function on the client from the server side?

Can the server call a function on the client, so that the called function is executed on the client and the value is returned to the server?
For the client to execute a function without knowing its body. For safety.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
devalone, 2017-09-26
@devalone

For the client to execute a function without knowing its body

This is impossible, the client will execute the code, you can obfuscate it, compile it, or somehow complicate its receipt, but the code will still be visible to the client.

M
moh-mog-drinks, 2017-09-26
@moh-mog-drinks

Yes, it's possible.
The topic that interests you is discussed under the term "means of protecting the program from hacking."
Or "mounted means of protecting the program from hacking"
There are many interesting technologies.

I
Ivankon, 2017-10-05
@Ivankon

Read about Roslyn, for example here Albahari, Joseph, Albahari, Ben.
A45 C# 6.0. Directory. Complete Description of the Language, 6th ed. : Per. from English. - M. : LLC
"ID Viljame", 2016. - 1040 p.: ill. - Paral. tit. English
ISBN 978-5-8459-2087-4 (rus.)
In the last chapters it is well described, you can compile and execute a string, without any traces in the system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question