Results 1 to 4 of 4

Thread: Qt writing files over a TCP/IP network

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2011
    Posts
    42
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10

    Default Qt writing files over a TCP/IP network

    My program setup has 2 computers connected by a TCP/IP network. if the user submits a form on computer1, the form elements should be stored in an xml file in computer2. How do i do this? There is a possibility that i will be adding more computers to existing setup. Do i have to do it as a client-server configuration?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Qt writing files over a TCP/IP network

    Quote Originally Posted by premroxx View Post
    Do i have to do it as a client-server configuration?
    Sound as this is the best option.

    You can also share a disk/folder of computer2 with write access and write the file direct. But then you have to make sure that every computer has mapped computer2's drive.

  3. #3
    Join Date
    Aug 2011
    Posts
    42
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10

    Default Re: Qt writing files over a TCP/IP network

    Are there any inbuilt command/functions to write files over a network? Whats the easiest way to do this?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Qt writing files over a TCP/IP network

    The easiest way... as Lykurg says, have the two machines use the same Windows/NFS share. If you are going to have n machines talking to a single central machine, and the clients are not on the same LAN (i.e. it has to work over the public Internet) then you have no real option other than setting up a client/server protocol of some sort. The server process could be something like a web or FTP server though.

Similar Threads

  1. Select and Insert commands failed while writing in to MDB Files
    By sateeshlankapalli in forum Qt Programming
    Replies: 0
    Last Post: 2nd February 2010, 08:07
  2. QFile resized files gets truncated after writing
    By MaximA in forum Qt Programming
    Replies: 1
    Last Post: 24th May 2008, 17:23
  3. fast writing of large amounts of data to files
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 13th February 2007, 16:33
  4. writing CMYK-Files from QImage
    By hilby in forum Qt Programming
    Replies: 2
    Last Post: 27th July 2006, 15:07
  5. [Qt4] writing files
    By patcito in forum Newbie
    Replies: 1
    Last Post: 7th January 2006, 02:41

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.