Results 1 to 3 of 3

Thread: QTcpServer + Authorization

  1. #1
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default QTcpServer + Authorization

    Hey @all,

    I have a client-/server application based on QTcpServer and QTcpSocket.

    Is there a way to implement User authentication (username, password). And if so how?

    I've no plan to do this with QTcpServer/Socket. Can anybody help me out of this.

    Regards
    NoRulez

  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: QTcpServer + Authorization

    There are lots of methods you can do that. The simplest is a trivial user/password check, like POP3 or HTTP Basic Auth do.

  3. #3
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default Re: QTcpServer + Authorization

    OK,

    i solved the problem with sending the password as a MD5 hash like in POP3

    Thanks

    Regards

Similar Threads

  1. QTcpServer & QTcpSocket questions...
    By jxmot in forum Qt Programming
    Replies: 2
    Last Post: 24th April 2008, 21:38
  2. QTcpServer limit for incoming connections
    By mdecandia in forum Qt Programming
    Replies: 9
    Last Post: 5th May 2007, 22:09
  3. QTcpServer in a QCoreApplication
    By xgoan in forum Qt Programming
    Replies: 1
    Last Post: 23rd March 2007, 10:19
  4. Replies: 6
    Last Post: 8th January 2007, 10:24
  5. Replies: 3
    Last Post: 11th May 2006, 00:00

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.