Results 1 to 2 of 2

Thread: Help on QTcpSocket, QTService and QThread

  1. #1
    Join Date
    Oct 2009
    Location
    Brazil Maceió/Alagoas
    Posts
    24
    Thanks
    7
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

    Smile Help on QTcpSocket, QTService and QThread

    Hello all

    I'm trying to create a simple solution using QTcpSocket, QTService and QThread, but I'm not having much success. The purpose of this solution is as follows:

    Server
    Windows service that receives client connections to receive txt files.

    Client
    Application that connects to the server application to send a txt file.

    Any help is welcome.

  2. #2
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Thanks
    17
    Thanked 90 Times in 88 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Help on QTcpSocket, QTService and QThread

    Quite a long while back I wrote a Client Server Protocol, that allows for some latency aware transfer. Just ignore all that stuff and you will find some tcpsockets in threads in there.

    I remember, that it took me a long while before I could figure some of the stuff out.

    Hope it helps to understand how that stuff works and doesn't confuse too much!

    Another starting point might be:
    http://doc.trolltech.com/4.5/network...uneserver.html

    Both examples are not services, though.. But I would start to implement the server as a normal application and make it a service later.

    Let us know if you have any more specific problems.

    Johannes
    Attached Files Attached Files
    Last edited by JohannesMunk; 12th November 2009 at 17:10.

  3. The following user says thank you to JohannesMunk for this useful post:

    josecarlosmissias (20th November 2009)

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.