Closed ECrecords closed 1 year ago
recv_message(state: Server_State, sock: socket.socket) handle_connection(state: Server_State, sock: socket.socket) clean_up(state: Server_State) init_listr(state: Server_State)
recv_message(state: Server_State, sock: socket.socket)
handle_connection(state: Server_State, sock: socket.socket)
clean_up(state: Server_State)
init_listr(state: Server_State)
creation of class Server_State
Server_State
state
menu(usr_input: str, state: Server_State)
created a bash script, test.sh that runs a few commands to test the program.
test.sh
use sh test.sh to execute script
sh test.sh
strucuture looks okay. Let's merge it.
function completed:
recv_message(state: Server_State, sock: socket.socket)
handle_connection(state: Server_State, sock: socket.socket)
clean_up(state: Server_State)
init_listr(state: Server_State)
changes:
creation of class
Server_State
state
in the program.menu(usr_input: str, state: Server_State)
state
. It simplified the complexity of the programtesting:
created a bash script,
test.sh
that runs a few commands to test the program.use
sh test.sh
to execute script