scs icon indicating copy to clipboard operation
scs copied to clipboard

RMI

Open JKamsker opened this issue 8 years ago • 4 comments

Hey Is it possible to invoke an mehtod on the client side and return the results to the server? That would save me a whole of a lot of work :) Are there any examples for this? Thanks in advance!

JKamsker avatar Mar 10 '17 01:03 JKamsker

Hi,

Sure, it's possible. See my article: https://www.codeproject.com/Articles/153938/TCP-Server-Client-Communication-Usage#chatclient

In this chat example, server calls client's methods whenever needed. Any method can have a return value.

hikalkan avatar Mar 10 '17 06:03 hikalkan

Oh, thank you, didn't see that. Looks very difficult, I'll have a look at it :D

JKamsker avatar Mar 10 '17 21:03 JKamsker

Is there any console-only example? Its really hard to understand and i barely make any process :(

JKamsker avatar Mar 10 '17 22:03 JKamsker

It's not complicated actually. There are some console samples, but may not be exactly like what you want. You can start from this sample for example: https://github.com/hikalkan/scs/tree/master/samples/SimpleCalculatorSystem

hikalkan avatar Mar 13 '17 08:03 hikalkan