-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadme.txt
More file actions
25 lines (17 loc) · 999 Bytes
/
readme.txt
File metadata and controls
25 lines (17 loc) · 999 Bytes
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
# TCPLab
Simple TCP server/ client code. This was a homework assignment that was kinda fun to finish. I want to keep it here if I ever need to use it as an example for myself in the future.
Step 1: run makefile in tcpserver
Step 2: run makefile in tcpclient
This will make server (run with ./server) and client (run with ./client IP_address)
Step 3: run both executables and run a bunch of the commands in the client(s)
rand10.txt was used for testing. You can use it for testing, too if you'd like.
Functions:
catalog - get a list of files on the server.
download <source file name> <destination filename> - download a file
upload <source file name> <destination filename>
spwd - get the linux pwd command from the server
bye - disconnect from server
This is just a homework assignment and not meant for actual use, so issues likely won't get fixed.
Known issues:
Uploads/ downloads limited to buffer size.
Control flow not as sweet and simple and compartmentalized as it should be.