Syntax: | to_format |\0| to_format: 2 bytes
Syntax: | to_name |\0| to_name: 256 bytes
Type:
- Syntax:
- Send to_format string to server
- Send to_name string to server
- Send file to server as a collection of the individual bytes in the file
- Server sends confirmation or failure message
- Open a terminal window and run ./server <port_number>
- In a new terminal window, run ./client <server_IP> <port_numnber> <file_path> <to_format> <to_name>
Client:
- gcc -o client client.c dwerror.c
Server:
- gcc -o server server.c dwerror.c hndl_client.c
TCP/IP Sockets in C: Practical Guide for Programmers, Donahoo, M., Kenneth, C.L. (2001)