Hello,
I'm new here :) So please be gentle with me :)
My question: I want to write a Server and a Client with Sockets. It's not the problem but I would want to send not "text-based". And I should be able to send commands like this:
CommandName "Para1" "Para2"...
But of course there exist Commands withouth Parameter, too.
How should I do that in C++? Yes, of course C++ doesnt support that. And I'm under windows. So I use winsock. But I would be very happy to do it on the most portable way ;)
So how would be the best way? I'm frightend because of to small buffers and so on. Especially because of recv()... And later I want to send files, too.
How should I design it at all? I'm thinking how to solve this problems for long time. But.... :(
I hope my problem is understandable.
Thanks :)
Dummie