Hey,

I was wondering if anyone could help me with this, I am able to write a string and receive the string but I would like it to be an integer array instead. I am using QTcpSocket to create the connection between the client and server.

The following is the coding I am using for sending the string over
Qt Code:
  1. client.write("hello", 5);
To copy to clipboard, switch view to plain text mode 

And the following is the code I am using for receiving the string
Qt Code:
  1. char buffer [1024] = {0};
  2. client.read(buffer, client.byteAvailable());
To copy to clipboard, switch view to plain text mode 

Thanks,
Strateng