This is the first version of socket programming with no login authentication.
Just test its functions.
Complete functions below:
-
check online numbers
-
check all the message
-
broadcast online client
-
broadcast any message input
-
forward message
-
exit
Preparation:
required modules:
socket
threading
How to run the code:
python server_tcp_login.py
split the terminal, then
python client_tcp_login.py
Have fun with all the functions realized!
PS: login information are in the users.txt
.
Complete functions below:
-
check online numbers
-
send message to the server
-
send message to the online client
-
receive message
-
exit
Preparation:
required modules:
socket
time
How to run the code:
python server_udp.py
split the terminal, then
python client_udp.py
Have fun with all the functions realized!
PS: login information are in the word.txt
.