goranpavles
22nd June 2016, 10:06
Hey guys, I'm taking my first few steps in qt.
I've been trying to understand how to best approach data transfers between two machines and have found many answers about text and file transfers. But I'm still having trouble to understand the basic concept of datatypes and the translation into bytes.
I understand the concept of tcp sockets and all that. I do have a client and a server console running and they communicate successfully. But what I'd like to do is send useful information for my application on each side.
Let's say a command for the server to execute, like a function or querry, and then return a class instance, a table or anything else that the application on the other end can use and fill it's gui with. How would one approach such a translation into bytes, and then back into a useful format?
Any info or hints are much appreciated
I've been trying to understand how to best approach data transfers between two machines and have found many answers about text and file transfers. But I'm still having trouble to understand the basic concept of datatypes and the translation into bytes.
I understand the concept of tcp sockets and all that. I do have a client and a server console running and they communicate successfully. But what I'd like to do is send useful information for my application on each side.
Let's say a command for the server to execute, like a function or querry, and then return a class instance, a table or anything else that the application on the other end can use and fill it's gui with. How would one approach such a translation into bytes, and then back into a useful format?
Any info or hints are much appreciated