Skip to main content

Questions tagged [udp]

User Datagram Protocol is one of the messaging protocols of the IP protocol stack. With UDP, computer applications can send messages to other hosts on an Internet Protocol (IP) network without requiring prior communications to set up special transmission channels or data paths.

Filter by
Sorted by
Tagged with
3 votes
1 answer
99 views

I'm using a Web extension to communicate with an Isolated Web App over externally_connectable for the capability to use Direct Sockets UDP and TCP sockets from ...
guest271314's user avatar
7 votes
3 answers
1k views

I built a controller with 3 rotary encoders to control various parameters of a program i wrote to control a motor. The controller delivers data via usb through serial (Arduino). Originally I used OSC ...
herrgross's user avatar
2 votes
1 answer
209 views

I want to sample audio as a learning process. In the future i want to make my dorbell "smart" and stream the audio via VoIP. But as beginning i want to sample a simple audio signal from my ...
Marc's user avatar
  • 153
8 votes
3 answers
738 views

Background: I am in earlier stages of implementing a standard on top of an existing 'backend' This standard requires that I send data in UDP packets of a size specified at runtime All packets must be ...
Douglas B's user avatar
  • 181
2 votes
1 answer
272 views

review my code if possible. I am making network packet capture using pyshark and python. if possible give me some feedback about the code and help to make it better. ...
user20828450's user avatar
1 vote
1 answer
305 views

based on this stackoverflow topic: https://stackoverflow.com/a/12150289/15270760 I have decided to create a simple NTP client displaying difference between NTP server response and DateTime.Now called ...
Artur's user avatar
  • 169
2 votes
1 answer
386 views

After searching a lot, on how to do it and not finding any good solutions, I implemented my own UDP livestream from an Android device to a C#/WPF desktop application. It works, however, since I get ...
Roland Deschain's user avatar
1 vote
1 answer
354 views

This is a student project of mine. I got 4/5 points but I suspect there's a lot of weird stuff in there. I never had a chance to hear my teacher's feedback about it and it bothers me so I figured ...
Student123's user avatar
2 votes
0 answers
66 views

Listening to messages from the udp socket, I would like to somehow determine where packets come from and scatter in sessions to get a more detailed report on the received data, I just did it forehead, ...
JohnnyCage's user avatar
5 votes
2 answers
297 views

this is my code for watching IP packets. I am doing project for my self because I want to learn how this things works. This is my IP Packet class: ...
TJacken's user avatar
  • 291
2 votes
1 answer
830 views

I write kind of UDP server. It should serves about 50 messages per second. I would like a review about the general code 'quality' and logic. The server uses the same socket for sending and receiving ...
bw_dev's user avatar
  • 267
4 votes
0 answers
609 views

What am I doing? UDP/TCP server in Python (2.7 / 3.7) How am I doing? Using threads Where am I going to execute it? In a virtual machine running linux in AWS or Google Cloud or Azure () What ...
IoT user's user avatar
  • 141
7 votes
1 answer
5k views

I would like constructive criticism of a networking plugin I've written for Unity 3D. The use-case of the code is for people in "creative coding," where simple TCP and UDP messages are used for ...
Yosemite's user avatar
  • 157
6 votes
2 answers
2k views

I'm currently learning python / network programming altogether and I coded this simple python reverse shell; I would like to hear any remarks from you regarding code structure, any common beginner ...
R2K's user avatar
  • 63
2 votes
1 answer
2k views

I am working on a (personal) light weight distributed project for the Rpi platform. Making it distributed requires P2P communication between the nodes, and I thought it would be a good time to learn ...
Sam Hammamy's user avatar
3 votes
1 answer
2k views

Camera streaming app for the pizero, hobby project. I want the cam to be sending frames only if there is an active client on the other end. For this purpose the cam is listening on a port for client ...
user3017869's user avatar
13 votes
1 answer
505 views

As part of a small multiplayer game project I designed a generic (and not too complex) protocol (used over udp). The game is 2D, has physics-based elements (e.g. rigid body, smoke) and should be ...
nyorain's user avatar
  • 151
6 votes
1 answer
2k views

I wanted to get some review on this code I wrote. The repo is here if you want to download the CodeBlocks project. This program is several things: it is a console using SFML graphics; it is a console ...
jacobdavis1's user avatar
8 votes
1 answer
3k views

I have basic C++ lectures at a university and I don't really know how I can optimize this line of code for a real-time application (I call this function every 5 ms for UDP packet decoding). I would ...
Henri Koch's user avatar
6 votes
3 answers
2k views

I'm currently building a small plane with Raspberry Pi Zero W. I wrote a small code which uses UDP to control it. Here I'm resending packets regularly in a thread because of the joystick input (it ...
mou's user avatar
  • 291
2 votes
1 answer
15k views

I have written this code in C# and have tested this code to ensure it works well. Any other suggestions for this code would be appreciated as I have a number of users who are sending data on this port....
Shridhar's user avatar
  • 139
2 votes
1 answer
855 views

I'm writing a communications library for a class. Part of the requirements is that semi-reliable communications, which leads me to this monstrosity: ...
Greg's user avatar
  • 21
2 votes
1 answer
2k views

The following (stripped) program receives UDP packets on port 5000 and forwards them to port 5001. It may throw socket errors on startup (e.g.: if the port is already in use), but I am not too worried ...
marcv81's user avatar
  • 193
10 votes
2 answers
3k views

This C code will run on an embedded machine with a Linux OS. It should create data packets (ASCII) to repeatedly be sent to a UDP server. Just to give an overview about what functions should do: <...
Joao Ferreira's user avatar
3 votes
0 answers
725 views

I wrote this wrapper around the UdpClient,using events for new datagrams: ...
beppe9000's user avatar
  • 191
2 votes
0 answers
2k views

I am making a multiplayer platforming game, and currently there are server performance issues once I have about 7+ clients connected. I was told earlier last week that I should investigate ...
Dysprosium Dysprosium's user avatar
6 votes
1 answer
8k views

What I'm doing I am writing a server to work as my games backend. The server is being written in C# using UDP as the protocol, while the game is in C++. The biggest thing I've been focusing on was ...
Johnathon Sullinger's user avatar
0 votes
1 answer
100 views

I want to play some audio of two byte arrays. I was wondering whether it would be better to play them as two separate arrays both calling the method, or to put them into one array and play it from ...
user3667111's user avatar
9 votes
1 answer
3k views

For my current project I need a basic UDP server. The first priority is to make it as fast, but as resource friendly as possible (it will be run on Raspberry Pi-like devices). I would like a review ...
Kimmax's user avatar
  • 317
20 votes
2 answers
418 views

I wrote an application a while back to plan and manage drones races. (Well, it could be anything with identification numbers going through checkpoints.) At that time, communication between the gates (...
301_Moved_Permanently's user avatar
3 votes
3 answers
2k views

I'd like to get some feedback/criticism on my attempt to write a simple client/server application that reports back the (client's) global IP address. It would be nice if you could comment on the UDP ...
aefxx's user avatar
  • 133
6 votes
2 answers
4k views

I would like the following code reviewed: I am trying to create a local server which listens indefinitely and provides the latest information. The server runs another while loop which fetches ...
Learner's user avatar
  • 73
11 votes
4 answers
4k views

I have implemented the gossip algorithm in distributed systems for review. Gossip class ...
Evans Murithi's user avatar
40 votes
1 answer
1k views

I have written the following utility, as my first non-tutorial program in Go. The purpose of the utility is to connect to a torque/force sensor (aka load-cell) via UDP; to send an initialization ...
Mike Hamer's user avatar
5 votes
2 answers
2k views

I'm trying to understand where my ruby implementation of this fails and hoping for an expert to shed some light on this situation. I've tried to make this a very simple example with the idea that ...
Anthony's user avatar
  • 439
6 votes
2 answers
2k views

I have a bunch of different ports I want to listen on and the iterate over the available data to send to a Dataflow pipeline. In total I'm listening on 14 ports. I'm looking for any advice on how to ...
Jesse's user avatar
  • 163
6 votes
1 answer
664 views

I've written a simple Simple Service Discovery Protocol (SSDP) module. This module contains a class, Session that you create and then use to issue commands and ...
bentayloruk's user avatar
6 votes
1 answer
781 views

I'm writing a Java application to control a custom IR research camera that will be installed on an aircraft. The camera connects to the the computer using UDP sockets via a direct LAN cable. The ...
Nate Lockwood's user avatar