Skip to content

Commit 34be27f

Browse files
committed
Update Skeleton.py
1 parent 3ae7485 commit 34be27f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Skeleton.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,18 @@ def main():
5555
operations = {'get': get, 'put': put, 'delete': delete, 'clear': clear, 'quit': quit}
5656
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Create a socket object
5757
host = '127.0.0.1' # Get local machine name
58-
port = 12345 # Reserve a port for your service.
58+
port = 2000 # Reserve a port for your service.
5959
s.bind((host, port)) # Bind to the port
6060

6161
s.listen(5) # Now wait for client connection.
6262
while True:
6363
c, addr = s.accept() # Establish connection with client.
6464
print ('Got connection from', addr)
6565
while True:
66-
print(operations[get])
6766
modifiedConnected = c.recv(1024)
6867
message = modifiedConnected.decode()
6968
print(message)
70-
if(message == operations['get']):
69+
if(operations['get']):
7170
get()
7271
elif(message == operations['put']):
7372
put()

0 commit comments

Comments
 (0)