Page 1 of 1

minimal message server?

Posted: Nov 11th, '17, 21:29
by MSandro
Hi, I am working on an modified version of GPs "CloudDataServer", but in some situationes I stuck. So I tried to build my own message server from the ground up as simple as posible,for better understanding - but I failed. The client can connect to the server but I have problems with the message handling.

What I tried:
Creating a "server" with only the ability to put/send data on/to it. All putten messages should be printed in the console.
server.png
And one client wich should be able to send this message to the server, the message contain the command "put" and one argument.
sender.png
sender.png (10.3 KiB) Viewed 8149 times
I don't understand the "blob" commands, so I tried to send the message only with the "put" command and one "arg" wich the user should enter.

Can someon help me with this, please?

Re: minimal message server?

Posted: Nov 16th, '17, 15:57
by JohnM
I don't see a call to "startServer" anywhere; part of the problem might be that your server isn't running.

If you put your simple server and client into a single project and post it here I can take a look.

Re: minimal message server?

Posted: Nov 17th, '17, 18:34
by MSandro
Thank you, I am a bit confused with this stuff...

Here is the file: