multicast

Python Netlink Multicast Communication in Kernels above 4

本小妞迷上赌 提交于 2019-11-27 17:01:33
问题 I was trying to reproduce the example from a previous SO post on a kernel above 4 (4.1): #include <linux/module.h> #include <linux/kernel.h> #include <linux/netlink.h> #include <net/netlink.h> #include <net/net_namespace.h> /* Protocol family, consistent in both kernel prog and user prog. */ #define MYPROTO NETLINK_USERSOCK /* Multicast group, consistent in both kernel prog and user prog. */ #define MYGRP 31 static struct sock *nl_sk = NULL; static void send_to_user(void) { struct sk_buff

Need microsecond delay in .NET app for throttling UDP multicast transmission rate

走远了吗. 提交于 2019-11-27 15:26:13
问题 I'm writing a UDP multicast client/server pair in C# and I need a delay on the order of 50-100 µsec (microseconds) to throttle the server transmission rate. This helps to avoid significant packet loss and also helps to keep from overloading the clients that are disk I/O bound. Please do not suggest Thread.Sleep or Thread.SpinWait. I would not ask if I needed either of those. My first thought was to use some kind of a high-performance counter and do a simple while() loop checking the elapsed

UDP Multicast over the internet?

天涯浪子 提交于 2019-11-27 08:03:20
I'm not sure how best to approach my problem. I have a service with runs on a remote machine with receives and process UDP packets. I want the service to be able to re-send these packets to anyone that happens to want them (could be no-one, will typically be one machine, but may be more) I figured UDP Multicasting would be ideal - the service can send to the multicast group and it doesn't matter how many receivers have registered, or even if there are none. However, I want to be able to access this over the internet and from what I gather this is nigh-on impossible with UDP Multicasting. Is

Can I use broadcast or multicast for TCP?

核能气质少年 提交于 2019-11-27 05:47:26
问题 For Internet Protocol (IP) I can use multicast : in IPv4: Internet Group Management Protocol (IGMP) in IPv6: Multicast Listener Discovery Also, in example, for UDP I can use: broadcast - to send packet to range of addresses multicast - to send packet to list of specified addresses But can I use something of these for TCP? 回答1: No, you can't. TCP is a protocol for communication between exactly two endpoints. Compared to UDP it features reliable transport, that means, that packets get not only

Receiving multiple multicast feeds on the same port - C, Linux

微笑、不失礼 提交于 2019-11-27 04:01:00
I have an application that is receiving data from multiple multicast sources on the same port. I am able to receive the data. However, I am trying to account for statistics of each group (i.e. msgs received, bytes received) and all the data is getting mixed up. Does anyone know how to solved this problem? If I try to look at the sender's address, it is not the multicast address, but rather the IP of the sending machine. I am using the following socket options: struct ip_mreq mreq; mreq.imr_multiaddr.s_addr = inet_addr("224.1.2.3"); mreq.imr_interface.s_addr = INADDR_ANY; setsockopt(s, IPPROTO

how to list rooms on socket.io nodejs server

时光怂恿深爱的人放手 提交于 2019-11-27 01:03:29
问题 after progress on the question how to create socket.io multicast groups, I found making rooms a great way to do what I needed. However, it would be great to know about all the rooms, without an extra data-structure. Is it possible to get a list of all rooms on the server from the server socket? 回答1: The short answer: io.sockets.adapter.rooms I analysed io : I got the following output: { server: { stack: [ [Object], [Object], [Object], [Object], [Object], [Object] ], connections: 3,

Multicast on Android 2.2

喜欢而已 提交于 2019-11-27 01:02:06
问题 Has anyone gotten Multicast to work on Android 2.2, specifically JmDNS for Bonjour service detection. There are many questions & answers from the Android 1.5->2.0 timeframe, including on stackOverflow, that indicate varying levels of success, and a bug in the bug tracker that indicate it was fixed, and closed, for 2.2 (http://code.google.com/p/android/issues/detail?id=2323) . I've tried the "TuneControl" source code, but that worked on ~1.5 and has not been updated, and does not work for me

Java Multicast Time To Live is always 0

对着背影说爱祢 提交于 2019-11-26 22:04:42
问题 I have a problem with setting the TTL on my Datagram packets. I am calling the setTTL(...) method on the packet before sending the packet to the multicastSocket but if I capture the packet with ethereal the TTL field is always set to 0 回答1: Funny that you should ask this, because I just wrote about this yesterday, I was having the same problem about 6 months ago. Basically you have to set an special system property telling the JVM to use an IPv4 stack: -Djava.net.preferIPv4Stack=true 回答2: To

How do you programmatically configure hazelcast for the multicast discovery mechanism?

强颜欢笑 提交于 2019-11-26 20:34:55
问题 How do you programmatically configure hazelcast for the multicast discovery mechanism? Details: The documentation only supplies an example for TCP/IP and is out-of-date: it uses Config.setPort(), which no longer exists. My configuration looks like this, but discovery does not work (i.e. I get the output "Members: 1" : Config cfg = new Config(); NetworkConfig network = cfg.getNetworkConfig(); network.setPort(PORT_NUMBER); JoinConfig join = network.getJoin(); join.getTcpIpConfig().setEnabled

UDP Multicast over the internet?

二次信任 提交于 2019-11-26 13:58:02
问题 I'm not sure how best to approach my problem. I have a service with runs on a remote machine with receives and process UDP packets. I want the service to be able to re-send these packets to anyone that happens to want them (could be no-one, will typically be one machine, but may be more) I figured UDP Multicasting would be ideal - the service can send to the multicast group and it doesn't matter how many receivers have registered, or even if there are none. However, I want to be able to