Page 3 of 3 FirstFirst 123
Results 41 to 43 of 43

Thread: incommingConnection not called by QTcpServer

  1. #41
    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: incommingConnection not called by QTcpServer

    Quote Originally Posted by toufic.dbouk View Post
    i ddnt ask to design a protocol for me
    i simply asked for help via email thats all
    i know networking, i took networking courses and do understand what you say about tcp and http and all that networking stuff
    Great. In that case you'll know how to coupe with things like segment fragmentation (although history of this thread claims to think otherwise). That's the basic thing you need to be aware of. There is a difference between "networking" and "protocol design", I hope you understand it.

    but u ddnt answer me about the QAuthenticator ?
    QAuthenticator is a class for carrying realm/user/password information, usually for HTTP-Basic authentication. It doesn't do any authentication on its own, it's just means of storing information.
    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.


  2. #42
    Join Date
    Dec 2012
    Posts
    197
    Thanks
    25
    Thanked 41 Times in 33 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: incommingConnection not called by QTcpServer

    Alright thank you wysota.
    ill let you know if i need any further help.
    Best Regards and thanks for your helpful replies.

  3. #43
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: incommingConnection not called by QTcpServer

    Quote Originally Posted by toufic.dbouk View Post
    what i meant here is that i have a QTcpServer instance(mServer) in my server class
    so i was expecting the incommingConnection to be invoked from it
    QTcpServer::incomingConnection on mServer is invoked as expected. You can easily verify that by putting a debugger break point into it.

    Actually the base class implementation adds a QTcpSocket to pending connections and emits newConnection(), so you don't even have to use a break point for verification

    Cheers,
    _

Similar Threads

  1. QTcpServer
    By DmitryNik in forum Newbie
    Replies: 0
    Last Post: 25th October 2011, 12:36
  2. QTcpServer
    By DmitryNik in forum Newbie
    Replies: 2
    Last Post: 1st October 2011, 08:07
  3. QTcpServer Problem
    By ionutdanila in forum Newbie
    Replies: 2
    Last Post: 27th December 2010, 12:18
  4. QTcpServer and GDB
    By baray98 in forum Qt Programming
    Replies: 2
    Last Post: 21st January 2009, 08:02
  5. Replies: 1
    Last Post: 18th June 2006, 10:12

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.