Results 1 to 3 of 3

Thread: vs2010 Managing file transfer over PTP link.

  1. #1

    Thread Starter
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    vs2010 Managing file transfer over PTP link.

    I've got something I want to jump on on Monday.

    I'm developing for a machine at a remote location. On that machine I'm accruing data at a rare max of 105MBps and a min of 20KBps but only during daylight hours. Trials show that the file size is completely unpredictable (weather dependent) we don't yet have a reliable mean. I've got to transmit as much as I can of this data back to another machine on the coast. The link rate is ~90 Mbps or ~11MBps but we expect down time, ironically when the data rate is at its highest.

    At this stage I'm completely open to suggestions. I have an C++ app writing files to a local drive. I intend to write a C# app that monitors that local drive looking for files to transfer and then delete when this transfer is successful. It will also delete select files when the local drive is full.

    What net objects should i be looking at, what i should I use for...
    • Monitoring a local drive for changes
    • Testing for connection. Ping?
    • Transferring files. Looping File.Copy in a try block??
    • Checking the remaining hard drive space. IO namespace?
    W o t . S i g

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: vs2010 Managing file transfer over PTP link.

    I think of 2 options, first is to use FTP, that might be the most robust solution for a "bad line", because the possibility of resume.
    Second option is to use a a simple wcf service, use the filesystemwatch, if a new file is created upload it immateriality.
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  3. #3

    Thread Starter
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    Re: vs2010 Managing file transfer over PTP link.

    Cheers Lightning,

    I had not considered FTP, I'll have a play with that today.

    Your latter suggestion is pretty much what I thought I would end up using.

    I'll post with how I get on.
    Last edited by Milk; Mar 12th, 2012 at 07:37 PM.
    W o t . S i g

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width