I have a project that i should do where we have a touch screen of a car. The screen is controlable right now with a programm called "ECU-TEST". I want to write a python script to simulate what is done by this programm. As first step i want to simulate a a press of one ..
I need to write a reliable transport protocol python program that uses UDP to handle packet loss, corruption, duplication and delay. I am new to coding and get the overall idea, but I don’t know many techniques to solving the problem.1 2 Source: Python..
I am currently reading the book Black Hat Python. Here is the code that I am trying to execute: import socket target_host = ‘127.0.0.1’ target_port = 80 client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) client.sendto(b"AAABBBCCC", (target_host, target_port)) data, addr = client.recvfrom(4096) print(data) When I run it, it gives me this error: Traceback (most recent call last): File "simpleudpclientbhp.py", ..
So im trying to use whats sent from the client to determine what the server sends back to the client in UDP. Ex. If client asks: address – Server recieves this and sends back 123 street from a text file. I cant figure out how to do this without breaking the server. Any suggestions or ..
I have a client and a server. The server sends a random number to the client and if it is less than 4, the client responds unsuccessfully. SERVER: import random from socket import * serverSocket = socket(AF_INET, SOCK_DGRAM) serverSocket.bind((”, 12000)) while True: rand = random.randint(2, 4) message, address = serverSocket.recvfrom(1024) message = (message.decode()+" СЛУЧАЙНОЕ ЧИСЛО: ..
hope you’re having a good day. I am using UDP to send packets of data from a microcontroller to a python server on my PC (I could not get the speeds I needed over TCP). I want to send a repeat request to the microcontroller if a packet is dropped (assuming this is the easiest ..
I have a client streaming video via udp to a server running Windows Server 2019. On that server, I can confirm that the stream is being received with VLC via network connection at udp://@:4000 I have some python code that is supposed to connect to this stream to process the data, and it has been ..
I need the UDP_server to take the request("message") multiple times (5-6 time will be ok) to calculate the arithmetic mean of the recorded response times (the time required from the moment you send the message to the time the response arrives from server). Probably I can do that with a "for", but I don’t really ..
Let’s say I’m using linux on a PC and on a server. I would like to route all my traffic (TCP, UDP, …) through the server. Are there any tools to make it? Is it even possible to have a TCP/UDP proxy? HTTP proxies are popular, but TCP/UDP seem unused. Let’s say I have also ..
I am working with the python socket library, and I am receiving a udp stream from either a unicast or multicast address. I receive packets like so: data = recieve_socket.recvfrom(args.psize) and I am already routing them to another udp address and port like so: recieve_socket.sendto(message, (send_addr, send_port)) I can connect to this udp stream already ..