#NAME : TAUSIF KHAN 
#SUBJECT: OSTL
#STD: SE COMPS(B)
#ROLL NO: 12
#EXPERIMENT NO: 10

import socket
host = '127.0.0.1'
port = 8000

#create a client side socket
s= socket.socket()
s.connect((host,port))

#enter data at client
str= input("Enter data: ")

#continue as long as exit not entered by user
while str!='exit':
    #send data from client to server
    s.send(str.encode())

    #receive the response data from server
    data = s.recv(1024)
    data = data.decode()
    print("from server: "+data)

    #enter data
    str=input("enter data: ")

s.close()

29b89441bb2cc9b00a4ed0ec03c1c7d1916bcd95
<mask token>

<mask token>
s.connect((host, port))
<mask token>
while str != 'exit':
    s.send(str.encode())
    data = s.recv(1024)
    data = data.decode()
    print('from server: ' + data)
    str = input('enter data: ')
s.close()

<mask token>
host = '127.0.0.1'
port = 8000
s = socket.socket()
s.connect((host, port))
str = input('Enter data: ')
while str != 'exit':
    s.send(str.encode())
    data = s.recv(1024)
    data = data.decode()
    print('from server: ' + data)
    str = input('enter data: ')
s.close()

import socket
host = '127.0.0.1'
port = 8000
s = socket.socket()
s.connect((host, port))
str = input('Enter data: ')
while str != 'exit':
    s.send(str.encode())
    data = s.recv(1024)
    data = data.decode()
    print('from server: ' + data)
    str = input('enter data: ')
s.close()

#NAME : TAUSIF KHAN 
#SUBJECT: OSTL
#STD: SE COMPS(B)
#ROLL NO: 12
#EXPERIMENT NO: 10

import socket
host = '127.0.0.1'
port = 8000

#create a client side socket
s= socket.socket()
s.connect((host,port))

#enter data at client
str= input("Enter data: ")

#continue as long as exit not entered by user
while str!='exit':
    #send data from client to server
    s.send(str.encode())

    #receive the response data from server
    data = s.recv(1024)
    data = data.decode()
    print("from server: "+data)

    #enter data
    str=input("enter data: ")

s.close()
