How to send and receive structure using write() function in tcp communication
-
hello , i have a structure i need to send it to server from client using write() function can anyone help me to achieve this.
thanks.
-
You need to serialize your structure into a buffer and then deserialize it from the buffer on a reading side.
Take a look on Protocol Buffers. -
"This":http://qt-project.org/forums/viewthread/27706 thread might help you.