SuperSocket.ClientEngine icon indicating copy to clipboard operation
SuperSocket.ClientEngine copied to clipboard

How can you use Commands with EasyClient ?

Open Akku-21 opened this issue 9 years ago • 6 comments

How can you use Commands with EasyClient ? is it possible at all?

Akku-21 avatar Aug 11 '16 14:08 Akku-21

Of course, Yes.

But you need do it by yourself. Define your command interface and commands, and then dispatch packages to commands,

kerryjiang avatar Aug 11 '16 14:08 kerryjiang

Ah ok. i was hoping there was or will be an automatic system for invoking ExecuteCommand on the matching class for a Key. So in order to get this done i will have to implement a dispatcher using reflection and parse the incoming key.

Are you planning to implement such a feature?

Akku-21 avatar Aug 11 '16 14:08 Akku-21

Probably yes, it can be shared between server side and client side.

kerryjiang avatar Aug 11 '16 14:08 kerryjiang

Thats what is discouraging me to do it myself. The work is more or less already done. You just have to adopt the interfaces i guess.

Akku-21 avatar Aug 11 '16 14:08 Akku-21

Thanks for the quick answers.

Akku-21 avatar Aug 11 '16 14:08 Akku-21

Hi Kerry Awesome work that you did on SuperSocket, although I was wondering the same question as Akku and if there was a way to implement the same kind of feature as dynamically loading assemblies but for the ClientEngine commands ? Any luck with this Akku ? I tried to code it myself but I must admit I am struggling applying the same model using reflection and calling Commands based on the Key that is returned from the ReceiveFilter. Are Akku and I the only 2 people trying to achieve such thing ?

BillyGunZ avatar Feb 10 '17 03:02 BillyGunZ