Results 1 to 3 of 3

Thread: Data communication between multiple computers

  1. #1
    Join Date
    Oct 2007
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question Data communication between multiple computers

    Hello Everybody,

    I want to ask expert advice on Qt and communication issue;

    Assume that we have 4 computers; A, B, C, and D.
    - Computers A and B are running Windows XP and thet are connected to the same wireless LAN router which also provide internet access to these computers.
    - Computer C is on the other site of the city and can access to internet and it is running Mac OS.
    - Computer D is running Linux and it is connected to computer A via RS232 serial port.

    What I want to do is to have bidirectional (simultaneously send and receive) continuous data streams (variable data rate, around 80 K bytes/sec) between all these computers. That is all computers should be able to send and receive data from each other.

    The application program which handles the communication should be independent of the actual physical layer (ethernet, or RS232) i.e. for the simplicity, the same send and receive functions prototype should be used.

    Can some one advise me how to realize this in Qt?

    Thx

    Albert Goodwill

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Data communication between multiple computers

    Ok, so you want someone to design your application... That's not cool, although I think someone will answer this post eventually. Also, I know who will do that .

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Data communication between multiple computers

    You will need some routing mechanism and an addressing scheme that will incorporate both networked and serial nodes. One class should be responsible for determining the next-hop node and outbound interface for given address. Another one should act like a server and listen for incoming messages and either forward them to another node, or emit a signal to deliver it to the local application. Third class should inherit QIODevice and represent a connection, so that you can easily send data from the application (you will need several subclasses --- one for each medium, and some kind of factory).

    It's a lot of work, so check out ACE first, maybe it will help you a bit.

Similar Threads

  1. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 13:53

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.