Simple network sharing program
To upload or download a file you must perform the following actions:
- Switch to client mode using
c
. - Select the file you want to upload or save a downloaded file to using
file
. - Set the server address using
conaddr {url}
. - Open a connection to the server using
con
. - Use either
upload
ordownload
.
To set up the server and then upload or download a file you must perform the following actions:
- Switch to server mode using
s
. - Select the file you want to upload or save a downloaded file to using
file
. - Start the server and wait for a connection using
serveropen
. This will block untill a connection is made. - Use either
serverupload
orserverdownload
.
- q - Quit
- c - Set Client Mode
- s - Set Server Mode
- file - Choose file to process
- conaddr {url} - Set the connection server address to {url}
- printconaddr - Print the currently selected address
- con - Connect to server
- closecon - Close connection to server
- upload - Upload file to server (Blocks)
- download - Download file from server (Blocks)
- clientclose - Stop client mode
- serveropen - Start the server and wait for client connection (Blocks)
- servernew - Wait for new client connection (Blocks)
- serverupload - Upload file to client (Blocks)
- serverdownload - Download file from client (Blocks)
- serverclose - Stop server mode and shutdown server
- Added easier console
- Fixed error when transferring a file less than 40 bytes
- Added server > client transfer
- Added new client connection command to server