Results 1 to 4 of 4

Thread: Command-Based Client (TCP)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    42
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4

    Default Command-Based Client (TCP)

    Hello Everyone,

    I am qurrently working on a TCP-Client, which needs to become command Based.

    I have already "prepared" a protocol to this purpose, by sending a command-ID with each data package, which the server can base its response on.

    My current problem lies on the fact that i will have many objects sending commands to the server and in some cases they will expect a response.

    Now I am unsure how to organize this best specially without blocking the socket.

    Should I use Threads for each sender that expects a response?

    or

    Should I try to implement a ticketing of sorts? For which each command sent will get a number and this will need to be attached to the corresponding response... (sounds complicated! )

    or

    ???

    I'm looking for some insight or a nudge in the "right" direction.

    (Hope someone understands what i have tried to ask.... )

    Thanks

    Eric
    Last edited by ericV; 31st August 2009 at 16:12.

Similar Threads

  1. WebIssues Client 0.9.5
    By mimec in forum Qt-based Software
    Replies: 0
    Last Post: 17th August 2009, 12:01
  2. Connected client tree
    By cooler123 in forum Qt Programming
    Replies: 7
    Last Post: 13th July 2009, 20:49
  3. Replies: 0
    Last Post: 22nd February 2009, 13:15
  4. Client side password management
    By frikkasoft in forum Qt Programming
    Replies: 2
    Last Post: 12th December 2008, 10:23
  5. synching client readings to server output
    By OnionRingOfDoom in forum Qt Programming
    Replies: 14
    Last Post: 28th January 2006, 18:15

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.