A connectionless transmission model with a minimum protocol mechanism. Unlike TCP, UDP (Use Datagram Protocol) have no handshaking/acknowledgements of data (No ACKs). Because of this, it's not guaranteed that any data is received by the end host. The up side, this avoids some delays due to it's simplicity.
A C Language based executable program that sends UDP commands/packets to a specified server host from a local client host.
- To create executable objects of client and server, run
makewithin the udp directory.- Note: Compiler warning messages are disabled.
- To remove/clean objects created, run
make clean.
The client executable file takes two command line arguments. The first is the IP address, and the second is the port number the server application is using. To find the IP address of the current server, try hostname -i (Linux). The server will use it's current IP, and only needs the port number to open.
- Complile the C-program
gcc udp_client.c -o udp_client
gcc udp_server.c -o udp_server
OR
run makefile commands (details in section above)
SSH into Linux VM: ssh <IDENTIKEY>@elra-##.cs.colorado.edu, ## can be 01, 02, 03, or 04
- Password is same as IDENTIKEYs
- Find IP of server:
ip addr
- From client:
scp -r <local_folder_location> <IDENTIKEY>@elra-##.cs.colorado.edu:<folder location>
# Example:
scp -r ./UDP_Sockets/udp name@elra-02.cs.colorado.edu:./udp_sockets- Create object executable files, listed under CLI Commands above.
- Open port on server to connect incoming traffic to
./udp_server <port>. - Connect to the server with
./udp_client <server ip> <port>. - Enter command when prompted on the client.
- Note: this can be run locally, using different ports for the server and client.

get <file_name>- copies specified file_name from the serverput <file_name>- copies specified file_name to the serverdelete <file_name>- delete specified file_name from the serverls- lists out all files in the current directoryexit- exits out of client console- Any command not listed above will loop back to available commands.