Hi,
I have a network application.
I want communicating between client and server whit QTcpsocket.

My server process some information that i want to be able to send to the client.
This information is a struct:

typedef struct Test{
QTcpSocket socket;
QString string;
};

How I can transfer this structure with TcpSocket?
The signature of "write" is:

write ( const char *, qint64 ) : qint64
write ( const char * ) : qint64
write ( const QByteArray & ) : qint64
writeData ( const char *, qint64 ) : qint64

I don't know how use the write function of tcpSocket to do it.

Can anyone help me please?

Thanks, Bye