cafu1007
28th May 2010, 13:29
Hi there, I have a Sever Client app that do receive and send information.
I have made a struct with the important thing that are being send thru.
I have reimplemented the operator>> << for the QDataStream to put and receive transforn(serialized i think) from the struct.
but now the customer want to reimplement the client i should give away the "protocol" but i have no idea how to do this since i dont know how the serializacion is done. what can i do to achieve this?, i pretty sure that is possible since what we are sending over tcp it just data plus header, how can i know what the client is writing in the port so if he want to make the client c# ,java or whatever else is posible and i dont have to modified so bad the application. Or shall just send a byteArray with separator(need to specified one) and the tried set the value to the structs manually.
Thanks for the answers
I have made a struct with the important thing that are being send thru.
I have reimplemented the operator>> << for the QDataStream to put and receive transforn(serialized i think) from the struct.
but now the customer want to reimplement the client i should give away the "protocol" but i have no idea how to do this since i dont know how the serializacion is done. what can i do to achieve this?, i pretty sure that is possible since what we are sending over tcp it just data plus header, how can i know what the client is writing in the port so if he want to make the client c# ,java or whatever else is posible and i dont have to modified so bad the application. Or shall just send a byteArray with separator(need to specified one) and the tried set the value to the structs manually.
Thanks for the answers