<filename>Attempts/piClient-Alexander Baran-Harper.py<gh_stars>0
#<NAME>: https://www.youtube.com/watch?v=PYBZtV2-sLQ
import socket

host = '#YOUR SERVER IP HERE'
port = 5560 #CHANGE PORT IF THIS ONES USED

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))

while True:
    command = input("Enter your command: ")
    if command == 'EXIT':
        s.send(str.encode(command))
        break
    elif command == 'KILL':
        s.send(str.encode(command))
        break
    s.send(str.encode(command))
    reply = s.recv(1024)
    print(reply.decode('utf-8'))

    
s.close()


<filename>Attempts/piClient-Alexander Baran-Harper.py<gh_stars>0
#<NAME>: https://www.youtube.com/watch?v=PYBZtV2-sLQ
import socket

host = '#YOUR SERVER IP HERE'
port = 5560 #CHANGE PORT IF THIS ONES USED

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))

while True:
    command = input("Enter your command: ")
    if command == 'EXIT':
        s.send(str.encode(command))
        break
    elif command == 'KILL':
        s.send(str.encode(command))
        break
    s.send(str.encode(command))
    reply = s.recv(1024)
    print(reply.decode('utf-8'))

    
s.close()


#<NAME>: https://www.youtube.com/watch?v=PYBZtV2-sLQ #CHANGE PORT IF THIS ONES USED