Hi all,
My goal is to create a (command line) server that handles multiple clients and provides a bunch of different functionality. It will have a DB (and i've already found the database examples around :P) to store data. Clients will request data from the serve, send new data to be added, send files to be processed and so on.
I've already started looking at examples like the Threaded Fortune Server and Fortune Client, SQL browser and have some specifications and architecture design of what i want / need.
The problem is my lack of knowledge about Qt (and C++ too). I'm more used to Java, have done stuff with C but i don't know how to send complex messages or even objects between clients and server. In Java i would/could send complex objects (Message for instance). I've seen by the examples how to send a simple string by convert it to a ByteArray, is this the correct way to go on more complex stuff?
So i will just have the server waiting for strings that identify each desired action? How would i receive more complex calls that included parameters, for example get me info about books with "Qt" in title or Author. And how would i reply with vectors/arrays and objects? Is it the best/only option to send it string, int, etc. part by part in each message? :S
Hope i'm being clear.
Thanks in advance,
PandMonium
Bookmarks