Skip to content

Commit

Permalink
Update clientside_chat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-v committed Jun 12, 2022
1 parent 58dd8dd commit 3e931cc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions BLOCK/clientside_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,7 @@

# maintains a list of possible input streams
sockets_list = [sys.stdin, server]

""" There are two possible input situations. Either the
user wants to give manual input to send to other people,
or the server is sending a message to be printed on the
screen. Select returns from sockets_list, the stream that
is reader for input. So for example, if the server wants
to send a message, then the if condition will hold true
below.If the user wants to send a message, the else
condition will evaluate as true"""

read_sockets,write_socket, error_socket = select.select(sockets_list,[],[])

for socks in read_sockets:
Expand Down

0 comments on commit 3e931cc

Please sign in to comment.