-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
45 lines (32 loc) · 1.44 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
README
# reliable udp file transfer(ruft)
# Taragaryen Server and Martell Client
For detailed information on implementation and design please refer to the write in root directory by the name:
targeryan_server_martell_client_writeup.docx
$ tar -xzf targaryen_martell.tar.gz
$ cd reliable_udp_file_transfer/
+++++TO BUILD THE SERVER++++++
$ make
gcc -c -o ruft_server.o ruft_server.c -g
gcc -I. -o ruft_server.bin ruft_server.o -g
On another Window build the client
+++++TO BUILD THE SERVER+++++++
From the root directory as in :<INSTALLATION ROOT>/reliable_udp_file_transfer
$cd client/
$ make
gcc -c -o ruft_client.o ruft_client.c -g
gcc -I. -o ruft_client.bin ruft_client.o -g
===============================================================================================================
I.Run Server
SYNTAX: ./ruft_server.bin <port no> <rwnd: In Multiples of 1280(MSS)>
$ ./ruft_server.bin 20010 5120
II.Run Client
SYNTAX: ./ruft_client.bin <server_host> <server_port> <filename.txt> <0|1|2 {0 - No Loss 1 -
Variable loss2-High Latency}> <rwnd:Multiple of 1280(MSS)>
$ ./ruft_client.bin localhost 20010 file_small.txt 0 5120
File Recieved
Time taken in micro secs: 3209
===============================================================================================================
Sample Test Cases
Sample test cases present in the wrte up
====================================END=======================================