Results 1 to 20 of 42

Thread: Problem by subclassing the QIODevice

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #16
    Join Date
    Jun 2010
    Posts
    34
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem by subclassing the QIODevice

    If I understand how WebSockets work, they make a request over HTTP which is above the transport layer (TCP serves as the transport layer).
    Yes, the client side is Google Chrome or Mozilla Firefox.
    This client send the first HTTP request.
    So by my side (server side), I have to get a client request (to etablish a connexion). And up to now, I used sockets to reply other requests.

    You can read the ref here : http://tools.ietf.org/html/draft-iet...ketprotocol-17

    Thats not "my" application. I'm making a generic API (webserver socket with Qt). So users can do simple requests or streaming, etc... (what they want...).
    So for now, I give to my API users a QWsSocket with which they can communicate with different clients.


    Added after 13 minutes:


    I looked this documentation (In French, sorry) http://qt.developpez.com/doc/4.7/qnetworkaccessmanager/
    And they speak about requests sended by the server to receive replies.
    But here I'm doing the opposite. So if you want, I could qnetworkaccessmanager if I had to developpe a client application, but here I need to develop a server application. Thats not the server which requests the clients, but clients which requests the server.
    Last edited by erqsor; 16th January 2012 at 21:35.

Similar Threads

  1. QIODevice read() problem (reads more than maxSize)
    By m15ch4 in forum Qt Programming
    Replies: 0
    Last Post: 22nd February 2011, 11:09
  2. Subclassing QSortFilterProxyModel problem
    By e79ene in forum Newbie
    Replies: 2
    Last Post: 21st February 2011, 13:23
  3. Phonon: subclassing QIODevice
    By iDm.MuFFin123 in forum Qt Programming
    Replies: 0
    Last Post: 23rd May 2010, 13:29
  4. Subclassing QMainWindow problem
    By lerwys in forum Qt Programming
    Replies: 7
    Last Post: 28th April 2009, 08:40
  5. Problem with QTreeWidget after subclassing
    By steve918 in forum Qt Programming
    Replies: 2
    Last Post: 28th July 2006, 18:51

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.