strateng
6th April 2010, 05:49
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
client.write("hello", 5);
And the following is the code I am using for receiving the string
char buffer [1024] = {0};
client.read(buffer, client.byteAvailable());
Thanks,
Strateng
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
client.write("hello", 5);
And the following is the code I am using for receiving the string
char buffer [1024] = {0};
client.read(buffer, client.byteAvailable());
Thanks,
Strateng