Results 1 to 2 of 2

Thread: Thread communications

  1. #1
    Join Date
    May 2009
    Location
    USA
    Posts
    300
    Thanks
    82
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Thread communications

    Thread problem here. I have a thread for getting streaming information from the internet. After connecting to the host, I send it a logon and it starts sending data back.

    The problem is, I need to be able to send commands back to the host to change the type of data sent. I don't see how to be able to do this without disconnecting from the socket and starting a new thread and re-connecting then logging on again and sending the new command. Is there a way to do this without disconnecting?

  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: Thread communications

    This really depends on what your application does and how it works, it's not something threads-specific.
    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. TCP Server and client communications
    By speedofdark in forum Newbie
    Replies: 4
    Last Post: 8th November 2014, 00:49
  2. Replies: 5
    Last Post: 22nd February 2011, 21:21
  3. bluetooth communications (RS-232)
    By freekill in forum Qt Programming
    Replies: 7
    Last Post: 12th February 2010, 14:48
  4. Replies: 9
    Last Post: 28th November 2009, 20:31

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.