CF C# .NET Programming Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to write a code in C# that a choosen file on one mobile device
(for example PPC) will send to another device (another PPC) using 802.11,
i.e. the user selects a file, clicks on "send" and the file is sent to the
other device. Optionally the receiver will receive a notification that a file
is being sent to him. Can you provide any guidlines for this? Any example?


Thank you so much!
 
You'll have to write a program on *both* ends and those programs will have
to be responsible for sending/receiving the file contents, presumably via a
socket. There is no service automatically running on a PPC device which you
can simply 'hook-up' to and send a file. I'd say that you want to open a
TCP socket on one or both ends, depending on whether you want any PPC in
your system to be a potential receiver or not. When a connection occurs,
have the sender authenticate itself (you've just opened a *huge*, no *HUGE*
security hole), send some information about the file (name, size), and then
the binary bytes from the file. The server application would open the
target file and write the received bytes to it. The client application
would open the file, read it, a block at a time (1024 bytes, maybe, per
send), and drop the binary data into the socket.

Paul T.
 
Back
Top