Sending Files

BlitzPlus Forums/BlitzPlus Programming/Sending Files

kfprimm(Posted 2005) [#1]
how can i send a file through a UDP/TCP stream?


Rck(Posted 2005) [#2]
I provide this code as is, sorry for being so lame.

These are sent through TCP, the only way that I would send data for the most-guaranteed highest success rate.

The sender should run the file send code, the receiver should run the file receive code. Downloads go into a "downloads" folder which will automatically get made.
The IP of the receiver must be known and the receiver must not be firewalled.

If anyone has any questions, please speak up.

I made this just for myself so that I won't always use AIM with friends.

There is a send limit, the number of bytes of the file must fit into the integer type, so dont try multi-gig files. Everything else should work ;)

FileSend


File Receive