diff --git a/README.md b/README.md index efee67e198ea71d176ef955df4fc201cd4858001..c9e6672c9759f7720c34e69834a951ec70de9399 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ - [Task 1: UDP decoder.](#task-1-udp-decoder) - [Task 2: Checksum.](#task-2-checksum) - [Task 3: Server UDP time.](#task-3-server-udp-time) + - [Demos](#demos) - [Getting Started](#getting-started) - [Dependencies](#dependencies) - [Installing](#installing) @@ -49,8 +50,15 @@ ___ * ***recv_and_decode_packet(websocket)*** We are taking a websocket connecting to it and printing the packet all it one. This take doesnt require us todo much else with the packet so it can just be called in a function.  * ***send_packet(websocket, sourcePort, deskPort, payLoad)*** To send packets to the server they need to be in UDP format in base64. This function will create a header for the payload including the correct checksum so the server can confirm the packet has arrived valid.  * ***unittest.py*** unittest is an inbuilt Python library. Its a test runner and is specially design for running tests and debugging. This one contains a few useful tools that we are going to use. It works similarly to the assert function. Task 3 doesn't have any output other than to the terminal. I could alter the output but this is out of my scope for the project. Here I am just checking if the program runs correctly. All the tests were successful. - - +___ +## Demos +* ***Task 1:*** + <iframe width="560" height="315" src="https://www.youtube.com/embed/_whlYriiWjs" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> +* ***Task 2:*** + <iframe width="560" height="315" src="https://www.youtube.com/embed/1Am2Eauk4dY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> +* ***Task 3:*** + <iframe width="560" height="315" src="https://www.youtube.com/embed/wndZ8pPSINo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> +___ ## Getting Started * Running the task files diff --git a/udpdecoder.py b/udpdecoder.py index 69f4c8f5c7767af952e6caa0f739863737d19532..8850ebc9ab691633a185c22c24bfcfa1008b19a6 100644 --- a/udpdecoder.py +++ b/udpdecoder.py @@ -33,5 +33,5 @@ if __name__ == '__main__': while x <= 10: printUDPPacket(decodePacket(asyncio.run(getPacket()))) time.sleep(1) - x+1 + x += 1 print("========================") \ No newline at end of file