Results 1 to 10 of 10

Thread: more network connections simultaneously

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: more network connections simultaneously

    Quote Originally Posted by jacek
    You could use different ports (like FTP does), but IMO it isn't necessary. Just add another command to your protocol that will allow clients to choose connection type. For example "CHAT MODE" would switch the connection into chat connection, while "CONTROL MODE" --- into connection that controls the session.
    Or provide control sequences made of unused characters (and escape them during normal transmission) so that you don't have to handle different "modes".

    To be honest this should be simply realised as urgent data (TCP) but I doubt Qt allows one to send/receive them.

    Edit: Another way could be to provide "commands" between the client and the server and treat chat transmission as another command in network traffic.
    Last edited by wysota; 8th June 2006 at 00:20.

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.