multicast

UDPClient Multicast receive fails on computer with multiple NICs

馋奶兔 提交于 2019-12-07 05:09:43
问题 I've got a computer with multiple NICs - and UDPClient's send method continually fails. Here's the code: private static void receiveData() { recvSock = new UdpClient(PORT); //recvSock.Client.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastInterface, mainInterface); recvSock.JoinMulticastGroup(IPAddress.Parse(IP), 50); IPEndPoint iep = new IPEndPoint(IPAddress.Any, 0); while (true) { byte[] data = recvSock.Receive(ref iep); // Do not include messages from us if (myIPs.Contains

Multicast support in .Net

北慕城南 提交于 2019-12-07 00:04:24
问题 In order to implement a network application that uses multicasts to send small periodic messages to other processes in the network, what choices do I have with regard to using APIs in the .Net framework? Apart from my obvious current choice, the System.net.sockets API, does WCF provide a simpler approach? Or is WCF purely a point-to-point SOA-based IPC mechanism? Note : I'm quite conversant with the implementation details of multicast programming. What I am interested in hearing is what other

listing multicast sockets

有些话、适合烂在心里 提交于 2019-12-06 23:37:32
问题 I am trying to list all opened multicast sockets on a linux system? netstat -g lists the groups joined though. Is there any other utility that I can use for this sake? Thanks a lot for the help. 回答1: In addition to netstat -g you can use this to see all sockets which are bound to a multicast address: netstat -anu|sort -nk4 This is a list of all UDP sockets (whether multicast or not). Look for all addresses in the range 224.0.0.0 to 239.255.255.255. These are sockets bound to multicast

Could not join Multicast group : No such Device

瘦欲@ 提交于 2019-12-06 16:30:57
I would like to stream camera data over UDP multicast using gstreamer. For that i used below pipeline, gst-launch-1.0 v4l2src ! videoconvert ! video/x-raw,width=720,height=576,framerate=25/1 ! x264enc ! mpegtsmux ! rtpmp2tpay ! udpsink host=224.1.1.1 port=9090 auto-multicast=true sync=true async=false qos=true But, I am getting below error, could not get/set settings from/on resource : gstmultiudpsink.c(948): gst_multiudpsink_configure_client (): Could not join Multicast group : No such Device But, the same pipeline is working in Ubuntu14.10 64 bit PC. It didn't work on RHEL7 64 bit PC. These

How do I make my multicast program work between computers on different networks?

廉价感情. 提交于 2019-12-06 12:39:00
问题 I made a little chat applet using multicast. It works fine between computers on the same network, but fails if the computers are on different networks. Why is this? import java.io.*; import java.net.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class ClientA extends JApplet implements ActionListener, Runnable { JTextField tf; JTextArea ta; MulticastSocket socket; InetAddress group; String name=""; public void start() { try { socket = new MulticastSocket(7777);

how to create socket.io multicast groups

邮差的信 提交于 2019-12-06 07:39:17
问题 I want to emulate multicast with socket.io I am used to BSD sockets where you save file descriptors in FD_SET, and iterate over them in an event loop to send() or write to them individually. If I can do the analogy in javascript, I will be golden:) Any ideas on how to store the "file descriptors" and then individually send() data to those descriptors with socket.io? thanks in advance! 回答1: Any ideas on how to store the "file descriptors" and then individually send() data to those descriptors

Android Multicast is only working using 255.255.255.255 address

浪尽此生 提交于 2019-12-06 06:31:40
问题 I tried setting the Multicast host as 230.0.0.1 using the port 5500. Then, on the other side I said to join group 230.0.0.1 at port 5500. It joined and it received packets for a few seconds. Then it stops all of a sudden. If I use 255.255.255.255 it receives packets normally. Why is this happening? The code for the Multicast sender is below: private class StatusBroadcasterThread extends Thread { private static final boolean DEBUG = App.DEBUG; private static final String TAG =

Duplicate packets in Multicast Receiver Socket [duplicate]

徘徊边缘 提交于 2019-12-06 04:04:14
问题 This question already has answers here : Receiving multiple multicast feeds on the same port - C, Linux (8 answers) Closed 4 years ago . There seems to be a bug in the following MulticastReceiver implementation. On creating two instances for <224.0.25.46,13001> and <224.0.25.172,13001>, I get each packet twice in each stream. Any pointers ? My guess is REUSEADDR ? class MulticastReceiverSocket { protected: const std::string listen_ip_; const int listen_port_; int socket_file_descriptor_;

ehcache auto-discovery (via multicast) between 2 instances on the same host

心已入冬 提交于 2019-12-06 02:36:50
问题 I run 2 tomcat instances on the same host. Each instance runs the same web application which tries to communicate some ehcache caches via RMI replication. I use the autodiscovery configuration in ehcache so I don't have to explicitly define which are the hosts and which are the caches I want to replicate. The ehcache instances do not manage to find each other and communicate: DEBUG (RMIBootstrapCacheLoader.java:211) - cache peers: [] DEBUG (RMIBootstrapCacheLoader.java:133) - Empty list of

MulticastSocket constructors and binding to port or SocketAddress

 ̄綄美尐妖づ 提交于 2019-12-06 01:31:09
问题 I may have a fundamental misunderstanding of the term binding here but I am confused about the usage of the MulticastSocket and it's constructors. They no not do what I understand they should do should do so any who can help me clear my misunderstanding would be appreciated. Firstly what I am trying to achieve. I have tried to write a short program that creates a MulticastSocket bind it (i.e. listen) on a specific network adapter and then join a specific Multicast group. I have tried the