Results 1 to 2 of 2

Thread: Does QWebSocketServer supports URL path-differentiated connections?

  1. #1
    Join Date
    Dec 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Does QWebSocketServer supports URL path-differentiated connections?

    What I mean is how do I create a socket server so that it accepts connections to, for example,:
    ws://localhost:1234/echo
    ws://localhost:1234/chat

    I don't find it anywhere in the Qt doc.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,418
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Does QWebSocketServer supports URL path-differentiated connections?

    The QWebSocket instances have a requestUrl() method. Doesn't this contain the URL used by the client?

    Otherwise, maybe use two instances of QWebSocketServer on two different ports? Like in non HTTP network programming?

    Cheers,
    _

Similar Threads

  1. Replies: 6
    Last Post: 6th November 2014, 19:21
  2. which version of Qt supports alignJustify ?
    By jinfe in forum Qt Programming
    Replies: 3
    Last Post: 22nd March 2014, 13:26
  3. Qt supports which Linux?
    By gib in forum Installation and Deployment
    Replies: 4
    Last Post: 26th September 2010, 14:26
  4. Replies: 8
    Last Post: 17th October 2009, 08:10

Tags for this Thread

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.