Questions tagged [datagram]

A datagram is a unitary message delivered entire over a network, typically via UDP, and typically with no guarantee on order or reliability of message delivery.

Datagrams support connection-less messages of a fixed maximum length. While datagrams allow for a bi-directional data flow, the order and reliability of message delivery is not guaranteed. A process receiving datagrams may find messages duplicated or missing or in an order different than the order sent. However, record boundaries in data are respected. Datagrams closely model the facilities found in many contemporary packet-switched networks.

630 questions
0
votes
0 answers

how i can make upd server listen for multiple ports?

I'm have a upd client/server chat system (text , voice), i would to listen for voice chat in port and text chat in another one
Mohamed Moamen
  • 286
  • 1
  • 3
  • 13
0
votes
1 answer

DatagramPacket.getAddress().getHostName() is blocking my Thread

I have a thread that receives a data from a device. When it comes to line myDatagramPacket.getAddress().getHostName() it stops for 5-6 seconds then it continues. When i tried a hardcoded ip like "192.168.1.163", it is working nonstop. How can I…
Tuna Karakasoglu
  • 1,262
  • 9
  • 28
0
votes
1 answer

Effect of Bandwidth on DatagramChannel Packets

I have a limited Bandwidth 512 Kbps Download 368 Kbps Upload I am sending 40 byte UDP packets at regular Intervals of 10ms in loop with Thread.sleep(10) statement. While receiving packets (UDP) can be of size 0-1500 bytes and can come at any time…
user871457
0
votes
1 answer

simple client/server chat packet routing using Datagram

so i have 3 clients and 1 server that should route the messages to the correct client. the client send a message along with the name of the other client that should get the message. and server should compare the name of the receiving client and…
Nick_Zadeh
  • 121
  • 2
  • 9
0
votes
1 answer

DatagramChannel packet listener taking high CPU

I have a packet Listener Thread in Java for UDP packets along with 2-3 other threads. It was running fine till today but now the process javaw.exe has started using CONSTANT 50% CPU. Here is my code. public class PacketListenerThread implements…
user871457
0
votes
1 answer

Where to run java exe file using Datagram traffic?

I have a small exe file (made from Java Runnable jar) which uses datagram traffic. It takes around 30MB RAM and 10-20 KBps network IO. The question is where can i run this file 24*7? -I cannot buy a dedicated machine (Too costly and not…
user871457
0
votes
0 answers

Why are only 3.1% of broadcast packets arriving on my local network?

I'm writing an application that consists of two distinct programs. One (the client) sends UDP broadcast packets and the other (the server) logs any packets received. The application is written in Qt - I've basically taken the UDP Multicast example…
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
0
votes
1 answer

Getting bytes from file in 512 increments and sending these across a network?

I have the following code. It works to the extent where the first packet is sent but once it gets inside the while loop the value is changed to -1 and therefore dosnt loop that piece of code once the loop is completed once. Im trying to put 512…
DMo
  • 591
  • 2
  • 6
  • 13
-1
votes
1 answer

Rust Datagram Socket: How to receive string from bytes

I am creating simple client server communication with unix datagram socket in Rust. I am receiving message to server from client with bytes length but not able to converting back to the original string I sent from client. I have tried…
JNP
  • 153
  • 2
  • 8
-1
votes
1 answer

How to convert a multicast address string to in_addr or in_addr6

I'm writing a program where a datagram socket should be able to receive multicast datagrams. I already found out that before a host can receive IP multicast datagrams, the host must become a member of one, or more IP multicast groups with a…
mab0189
  • 126
  • 12
-1
votes
1 answer

High Frequency Udp Multicast sending : after a while java.net.SocketException

I have developed an app that sends around 4 packets per second on three different multicast UDP addresses, for a total of 12 packets per second. The packet size is small, a 50 char String. After a while (20 minutes), all threads that handle the…
Babbiddiu
  • 11
  • 3
-1
votes
1 answer

Socket Programming java using datagram multiple packets

I am trying to make a client-server program. Where in client i am getting multiple inputs from user and i have to pass it to server. Server uses that info and does some calculation and sends back the result. important parts from Client code:…
Jeena
  • 309
  • 1
  • 5
  • 14
-1
votes
1 answer

Java Address already in use when trying to send multiple packets

I'm trying to make a program that has a client, and intermediate host and a server. The client sends a packet to the host, the host sends it to the server and than the server sends a packet back to the host who sends it to the client. This should…
tee
  • 1,286
  • 2
  • 19
  • 35
-1
votes
1 answer

UDP Datagram Socket in C# Framework (port from UWP)

I am trying to port the following code from UWP to C# framework (WPF app) public class DatagramSocket : IDatagramSocket { private Windows.Networking.Sockets.DatagramSocket socket; public DatagramSocket() { socket = new…
dan
  • 801
  • 15
  • 41
-1
votes
3 answers

Strip trailing decimal points from floats in pandas

All columns in my dataset seem to be floats. Some contain values like like '20. ' or '11. ' How can I selectively and quickly remove the dot and space, without affecting the other values in the column, like '24.4' or '12.5'? I have tried several…
skeitel
  • 271
  • 2
  • 6
  • 17