04_intro_to_sockets: update readme

This commit is contained in:
Daniel Meiburg 2024-05-17 12:50:29 +02:00
parent fe43eafb5c
commit 3b34468314
Signed by: dm
GPG Key ID: E5827ECFFE0AA4F2
1 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@
This project implements a daytime TCP/UDP server and client. This project implements a daytime TCP/UDP server and client.
The server listens for incoming connections and responds with the current date The server listens for incoming connections and responds with the current date
and time. The client sends a message to the choosing the output format of the and time. The client sends a message to the choosing the output format of the
date and time. The server responnds with date and time.
## Usage ## Usage
@ -13,7 +13,8 @@ date and time. The server responnds with
$ make $ make
# start tcp server # start tcp server
$ bin/daytimeTCPSrv <port> $ bin/daytimeTCPSrv <port>
# run tcp client # run tcp client
# message 1 -> get localtime otherwise get gmtime
$ bin/daytimeTCPCli <server-ip> <server-port> <message> $ bin/daytimeTCPCli <server-ip> <server-port> <message>
# start udp server # start udp server