Results 1 to 7 of 7

Thread: Network Raw Programming

  1. #1
    Join Date
    Nov 2012
    Posts
    48
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Network Raw Programming

    Hi every body,

    I am new to qt and I write a raw socket programm when I sniff the ethernet data I receive each packet towice!

    What shoud I do?
    Regards,

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

    Default Re: Network Raw Programming

    How is your problem related to Qt?
    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.


  3. #3
    Join Date
    Nov 2012
    Posts
    48
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Network Raw Programming

    I have compiled the same code with gcc and I dont have this problem.
    Regards,

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Network Raw Programming

    Quote Originally Posted by havij000 View Post
    I have compiled the same code with gcc and I dont have this problem.
    But Qt is NOT compiler or language. It is normal C++ library so your answer does not make sense.

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

    Default Re: Network Raw Programming

    Quote Originally Posted by havij000 View Post
    I have compiled the same code with gcc and I dont have this problem.
    Strangely enough Qt uses gcc for compilation.
    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.


  6. #6
    Join Date
    Nov 2012
    Posts
    48
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Network Raw Programming

    I know.
    I also have another problem with Qt when I use memcpy() function to copy a series of data in a specific address, each time the memcpy() function increase the source address by it self.

    in the other hand whan I want to copy the data for the second time the first byte of data wont copy and when want to do it for the third time the 2 first bytes wont coppy ????

    I have already checked the address before the memcpy function and all of the are ok.

    Regards,

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Network Raw Programming

    Quote Originally Posted by havij000 View Post
    I also have another problem with Qt when I use memcpy() function to copy a series of data in a specific address, each time the memcpy() function increase the source address by it self.
    memcpy() is a regular C function and not part of Qt. The fact that elsewhere in your code you are using some classes from Qt is not enough to state that Qt causes you problems with some code where you are not using it. If some address is increased then it is caused by the fact that you did something to increase it.
    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. qt4 network programming
    By linuxqt in forum General Programming
    Replies: 3
    Last Post: 12th March 2009, 15:41
  2. Getting started learning network programming
    By as001622 in forum Qt Programming
    Replies: 1
    Last Post: 20th June 2008, 13:02
  3. Network Socket Programming
    By Walsi in forum Newbie
    Replies: 4
    Last Post: 19th June 2007, 10:04
  4. Beginning network programming
    By Morea in forum Qt Programming
    Replies: 3
    Last Post: 29th May 2007, 19:39
  5. Qt Network Programming
    By Walsi in forum Qt Programming
    Replies: 5
    Last Post: 25th May 2007, 10:50

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.