datagram Questions

1

I would like to directly access to syslog messages from Python by reading /dev/log. My (very limited) understanding is that the correct way is to read from there is to bind a datagram socket. im...
Shrub asked 24/11, 2016 at 13:25

3

Solved

I'm planning to use an instance of DatagramSocket and call its send method from different threads... to send UDP packets to different clients. Is the method thread safe i.e. calling this method fro...
Hardset asked 11/5, 2013 at 14:38

1

As I recently found this paper describing a sniffing mechanism for iOS using Apple's NEPacketTunnelProvider Extension, I got curious and it made me want to understand it from a technical point of v...
Pianette asked 24/9, 2018 at 9:50

4

Solved

Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android?
Cl asked 26/5, 2010 at 15:5

2

Solved

In my application, I have one process (the "writer") reading data from external hardware. This process should supply consistent packets to several "readers". Question: How can one process send con...
Maccarthy asked 2/1, 2014 at 17:54

3

Solved

What's the difference between sockets (stream) and sockets (datagrams)? Why use one over the other?
Freiman asked 14/1, 2011 at 7:31

1

Solved

I am building a UDP-based application that receives and sends multiple packets. I could build a new DatagramPacket for each send, or I recycle one instance for the life of my application. Are ...
Voorhis asked 13/10, 2015 at 18:4

4

Solved

Is it true that upon receiving a segment from Transport Layer(TCP) towards Network Layer(IP) the resulting data unit will be a packet. Whereas when receiving a user datagram from Transport Layer(UD...
Floozy asked 25/12, 2012 at 0:54

6

Trying to convert a received DatagramPacket to string, but I have a small problem. Not sure what's the best way to go about it. The data I'll be receiving is mostly of unknown length, hence I hav...
Physiological asked 19/12, 2011 at 4:35

1

While experimenting with broadcast messages (on a Debian 8.3 VM running on VirtualBox 5.0.14 on a Windows 7 laptop) I found that netcat (nc) receives only the first broadcast message. It does not r...
Brusque asked 22/10, 2016 at 17:20

1

Solved

byte [] r = new byte[4096]; DatagramPacket dpr = new DatagramPacket(r, r.length); sock.receive(dpr); After the receive, will dpr.getData() & r always be the same? ex: Can I directly use the by...
Touber asked 1/6, 2016 at 5:19

5

For receiving UDP broadcast packets from the server to an android device, i used a service class and listen for packets in a thread. It receives the packet successfully. The problem is that if mult...
Saltworks asked 11/8, 2016 at 8:51

7

I would like to establish an IPC connection between several processes on Linux. I have never used UNIX sockets before, and thus I don't know if this is the correct approach to this problem. One pr...
Elveraelves asked 24/7, 2010 at 9:55

3

Solved

I want to use DTLS (on OpenSSL) using JNI on Android 2.1/2.2. Can someone help me get started (tutorials, howto, pointers etc) with building OpenSSL for Android (2.1/2.2) using the Android NDK? ...

1

Solved

I was working with a MulticastSocket and when ever I tried to join a group, it would never work when I was running the group on the "localhost" ip. However, I found this article http://lycog.com/pr...
Billiards asked 26/11, 2015 at 19:48

2

Solved

Here's simple case when binding to all ip interfaces and specific udp port: int bindPort = 5555; // example, udp port number DatagramSocket socket = new DatagramSocket(bindPort); byte[] receiveDa...
Pursuance asked 26/2, 2014 at 14:59

2

I know the maximum length of a datagram queue length can be found using "cat /proc/sys/net/unix/max_dgram_qlen". I wanted to know how to find the default value that is set on boot up (like in ca...
Lachellelaches asked 30/1, 2014 at 6:0

1

Solved

My target is to have a push-to-talk chat app in GSM/UMTS/LTE networks; initially I wanted use multicast addresses and peer-to-peer without overload the server; unfortunatly, after deep investigatio...
Ingrain asked 19/6, 2015 at 22:44

4

I am trying to send UDP with datagram in JAVA and my machine have several NIC with different IP's. How can I set which NIC I want my packet to be sent from ?? (assuming I have more than one on the...
Monacid asked 5/10, 2012 at 8:50

1

Solved

I'm trying to implement a simple library that can discover the router through UPnP protocol if the application is running in a NAT environment. I have tried two ways, multi-cast and datagram, for s...
Bentz asked 6/3, 2013 at 4:29

2

I get a feeling that I am missing something really obvious here. The overall structure of my system makes me want to use a blocking DatagramChannel without Selectors, in order to keep things simpl...
Affectation asked 11/3, 2013 at 11:49

3

OK this is one I've been trying to figure out for a few days now. We have an application on Windows Phone 7 where phones join a multicast group and then send and receive messages to the group to ta...
Melodie asked 23/11, 2012 at 11:34

2

Solved

I'm writing a chat program in java and I have been stuck for hours with this problem. This is my class that waits for clients to connect to the server. Every time a new client connects I create a ...
Croom asked 29/11, 2013 at 23:25

2

Solved

Which one does ioctl of FIONREAD return, the next packet's length, or the length of all data in the buffer? Suppose there is a UDP server that receives 2 packets from a client 1 and another ...
Zizith asked 8/6, 2013 at 3:36

3

Solved

Non-blocking TCP/IP SocketChannels and Selector in NIO help me to handle many TCP/IP connections with small number of threads. But how about UDP DatagramChannels? (I must admit that I'm not very fa...
Forgo asked 20/2, 2009 at 13:22

© 2022 - 2024 — McMap. All rights reserved.