[Qt-interest] Receive an ASCII string using TcpSocket
Arnold Krille
arnold at arnoldarts.de
Tue Apr 14 12:12:12 CEST 2009
On Tuesday 14 April 2009 12:00:15 Stefanos Antaris wrote:
> I can't make the server app because someone else is doing this.The
> server app is a C++ application.And it sends the String using sprintf.So
> i think that it is a /n-terminated string.
As far as my C-knowledge goes, *printf-function don't append a \n, could be
they append a 0-byte, but don't even count on that...
> The QByteArray can receive everything?Even if it is not a qt
> application?
QByteArray can store (and thus receive) everything that is representable as
bytes. Which in the case of computers tends to be (almost) everything. :-)
Have fun,
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090414/3162284c/attachment.bin
More information about the Qt-interest-old
mailing list