__MACOSX/._UDP Modified Already UDP Modified Already/.DS_Store __MACOSX/UDP Modified Already/._.DS_Store UDP Modified Already/UDPclient.py ''' Created on April 16th, 2020 @author: life ''' from socket...

can you do it



__MACOSX/._UDP Modified Already UDP Modified Already/.DS_Store __MACOSX/UDP Modified Already/._.DS_Store UDP Modified Already/UDPclient.py ''' Created on April 16th, 2020 @author: life ''' from socket import * serverName='127.0.0.1' serverPort=12000 clientSocket=socket(AF_INET,SOCK_DGRAM) message=input('I have received your bunker, now close socket') clientSocket.sendto(message.encode(),(serverName,serverPort)) modifiedMessage, serverAddress = clientSocket.recvfrom(2048) print(modifiedMessage.decode()) clientSocket.close() __MACOSX/UDP Modified Already/._UDPclient.py UDP Modified Already/UDPserver.py ''' Created on April 16th, 2020 @author: life ''' from socket import * serverPort=12000 serverSocket=socket(AF_INET,SOCK_DGRAM) serverSocket.bind(('',serverPort)) print("The server is ready to receive my bunker page") while True: message,clientAddress=serverSocket.recvfrom(2048) modifiedMessage=message.decode().upper() serverSocket.sendto(modifiedMessage.encode(),clientAddress) __MACOSX/UDP Modified Already/._UDPserver.py UDP Modified Already/pa41.docx Socket Programming – A Simple IM Assignment This lab assignment aims to teach you how to build a simple instant messaging software using socket programming. Detailed instructions will be provided in class lectures. The source codes are available on here. Requirements We’ve learned how to write a simple instant message software using socket programming in our lectures. In the classroom, we’ve practiced implementing the software using TCP. Two types of methods are presented in the classroom: · non-persistent method: for each message, you need to establish a communication channel using TCP. Once your message is sent/received, you need to terminate the communication. The major advantage of using non-persistent method is it utilizes communication resources when needed. The major disadvantage of using non-persistent method is it has large overheads on establishing communication channel everytime when a message needs to be sent. · persistent method: you establish a communication once and use the same communication channel for all the message exchange. The major advantage of using persistent method is it only needs to establish the communication channel once hence to reduce the overhead. The major disadvantage of using persistent method is it may have resource wastes while the communication channel is idle. In this lab assignment, you are required to implement the simple message software using UDP. You may modified the scripts you’ve programmed using TCP in class or you can start from scratch. Deliverables · Introduction · Design: you need to explain the communication logic/flow · Source code of your program · Test: test all the functionalities of your system with screenshots 1 Grading · Design: (3) · Source Code (5) • Test (2) __MACOSX/UDP Modified Already/._pa41.docx
May 22, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here