Results 1 to 9 of 9

Thread: (char) 0x00

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: (char) 0x00

    I did not paste the code as I have already tested it. It works fine for any packet.
    Except that it doesn't work, does it?

    You are possibly assuming that a single write at one end will result in a single read at the other end: assuming that all the data sent is available when readyRead() is emited. Of course we have no way to know.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: (char) 0x00

    Quote Originally Posted by ChrisW67 View Post
    You are possibly assuming that a single write at one end will result in a single read at the other end: assuming that all the data sent is available when readyRead() is emited. Of course we have no way to know.
    He is using UDP so in this particular case, as an exception to all other similar issues we're listening to, this time this is not a problem

    I'm still convinced we're dealing with some const char * function somewhere.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. How to convert unsigned char[] to char *?
    By Gokulnathvc in forum Newbie
    Replies: 2
    Last Post: 29th April 2011, 08:58
  2. char to const char* with atof
    By mickey in forum General Programming
    Replies: 5
    Last Post: 29th February 2008, 04:10
  3. Conversion from unsigned char* to unsigned char
    By santosh.kumar in forum General Programming
    Replies: 1
    Last Post: 6th August 2007, 13:12
  4. char* from QString
    By bruccutler in forum Newbie
    Replies: 16
    Last Post: 14th February 2007, 06:36
  5. c++ char to Int
    By mickey in forum General Programming
    Replies: 3
    Last Post: 4th October 2006, 23:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.