hikalkan / scs

TCP Server/Client Communication and RMI Framework
MIT License
225 stars 112 forks source link

RMI #24

Open JKamsker opened 7 years ago

JKamsker commented 7 years ago

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!

hikalkan commented 7 years ago

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.

JKamsker commented 7 years ago

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

JKamsker commented 7 years ago

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

hikalkan commented 7 years ago

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