I am not paying less than 15 dollars for it, I add time, if you can't do it, I just ask my classmate, who can do it for free.

1 answer below »
I am not paying less than 15 dollars for it, I add time, if you can't do it, I just ask my classmate, who can do it for free.

Answered Same DayMay 21, 2021

Answer To: I am not paying less than 15 dollars for it, I add time, if you can't do it, I just ask my...

Sandeep Kumar answered on May 25 2021
149 Votes
import socket
import threading
import queue
import sys
import random
import os
#Client Code
d
ef ReceiveData(sock):
while True:
try:
data,addr = sock.recvfrom(1024)
print(data.decode('utf-8'))
except:
pass
def RunClient(serverIP):
host = socket.gethostbyname(socket.gethostname())
port = random.randint(6000,10000)
print('Client IP->'+str(host)+' Port->'+str(port))
server = (str(serverIP),3930)
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
s.bind((host,port))
name = input('Please write your name here: ')
if name == '':
name = 'Guest'+str(random.randint(1000,9999))
print('Your name is:'+name)
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here