PC to PC file transfer

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi all,

I need to add to my app a computer to computer file transfer. I can't
use any components so I have to do this all from code. Basically, I
need to be able to input the recipients IP address and port (they run
the same app and press "listen" on a configured port to make their app
wait for a signal from the sender) and send any file. This needs to
work with binary files as well.

I know I need to use a FileStream but I have been banging my head
against a wall on just getting started. Does anyone have any
suggestions or have perhaps done this before and would like to share
some code?

I have been googling a while but none of the results I have come up
with have helped so I thought I'd ask fresh.

Please help!
TIA

.



Relevant Pages

  • How to read a partially locked file
    ... I'm having problems reading a partially locked file. ... The writer app (a 3rd ... My app tries to read the new data but since FileStream is ... The result is a lock exception when I try to read 1 byte that is within ...
    (microsoft.public.dotnet.framework)
  • RE: FileStream.Position (in Worker Thread) causes Bad Buffer Flush
    ... the sample app as small as possible. ... > I have a class which implements ISynchronizeInvoke (call it PacketStream). ... > In PacketStream I have a Stream (FileStream) and from that a BinaryWriter ...
    (microsoft.public.dotnet.framework)
  • Re: File i/o question
    ... using (FileStream i = File.Open(filename, FileMode.Open, ... catch (IOException) ... single user app into a multi-user app, ...
    (microsoft.public.dotnet.languages.csharp)