Download Latest Version udpftp_1_1.jar (16.6 kB)
Email in envelope

Get an email when there's a new version of udpftp

Home
Name Modified Size InfoDownloads / Week
udpftp_1_1.jar 2013-01-04 16.6 kB
readme.txt 2013-01-03 1.4 kB
udpftp_1_0.jar 2013-01-03 16.3 kB
Totals: 3 Items   34.4 kB 0
The UDPFTP application is a java application for transferring files over udp.
It has three functions:
1. It can be used as a stand alone server
2. It can be used as a stand alone client that can download files from server
3. It is JAVA library so you can develop udpftp-clients of your own.

It is packed in a jar-file. It needs to be started with java-command. Obviously 
you need to have java runtime installed. The syntax is as follows:


java -jar udpftp_1_0.jar [server|client] ipnr portnr [-dDelay] [-sPacketSize] filelist


To start a server on localhost port 2222 you just needs to type:

java –jar udpftp_1_0.jar server 127.0.0.1 2222



By this you will bind the server to localhost 127.0.0.1  and portnumber 2222. 
You will also as a default get a packetsize of 8192 bytes and a delay of 10 ms 
between each packet sent.

To start a server on 192.168.1.1 port 2223, with a delay of 30 ms between each 
sent packet and a packetlength of 31123 bytes:

java –jar udpftp_1_0.jar server 192.168.1.1 2223 –d30 –s31123

To start a client that connects to 192.168.1.1 on port 2223 and 
download fileToDownload.txt you’ll need to type:

java –jar udpftp_1_0.jar client 192.168.1.1 -2223 fileToDownload.txt

To start a client as above with another packet size (31123 bytes) type:
java –jar udpftp_1_0.jar client 192.168.1.1 -2223 -s31123 fileToDownload.txt


For the JAVA API look at the documentation pages.
Source: readme.txt, updated 2013-01-03