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
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...
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...
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...
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...
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?
...
Meng asked 1/6, 2010 at 19:17
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...
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...
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...
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...
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...
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...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.