multicast

MultiCast Messages to multiple clients on the same machine

巧了我就是萌 提交于 2019-12-03 12:08:55
Im trying to write a server/service that broadcasts a message on the lan ever second or so, Kind of like a service discovery. The message needs to be received by multiple client programs that could be on the same machine or different machines. But there could be more than one program on each machine running at the same time. Im using delphi7, with indy 9.0.18 where im stuck is if i should be using UDP(TIdUDPClient/Server) or IP MultiCast (TIdIPMCastClient/Server) or if its even possible... Ive managed to get it to work with IP Multi Cast with one client per machine, but even after many trys

Creating a class for an interface at runtime, in C#

↘锁芯ラ 提交于 2019-12-03 11:57:51
I'm looking at taking a set of objects, let's say there's 3 objects alive at the moment, which all implement a common interface, and then wrap those objects inside a fourth object, also implementing the same interface. The fourth object's implementations of methods and properties would simply call the relevant bits on those 3 underlying objects. I know that there will be cases here where it won't make sense to do that, but this is for a service multicast architecture so there's already a good set of limitations in place. My question is where to start. The generation of that fourth object

Multicast Support on Android in Hotspot/Tethering mode

╄→尐↘猪︶ㄣ 提交于 2019-12-03 11:48:52
问题 I have a prototype Android app that is listening for multicast packets to 'discover' clients to communicate with. The socket set up is similar to this: InetAddress group = InetAddress.getByName("228.1.2.3"); MulticastSocket s = new MulticastSocket(4000); s.joinGroup(group); This works very well when all the devices are connected via WiFi. I would like to support this with the phone acting as a portable hotspot. However, while all my devices appear to connect to the hotspot correctly I no

Multicast vs Broadcast in LAN

青春壹個敷衍的年華 提交于 2019-12-03 11:45:09
问题 Is there any advantage to using a multicast group to send messages rather than just broadcasting them to a specific port? I understand that when broadcasting, other computers that don't want the messages receive them too, but how much does it affect performance/traffic? Don't the computers that don't care just dump the message immediately? As a side question, does multicast outside the LAN work at all? 回答1: I will assume you're talking about IP traffic. When you say LAN, I will assume you

Why are (UDP multicast) packets not being received?

自作多情 提交于 2019-12-03 09:45:01
So, I've been trying to figure out exactly why this isn't working but I haven't a clue. I've managed to send packets from the iPhone and receive them on my Mac. And according to tcpdump my mac is correctly sending the packets. Additionally, if I run this in the simulator it works fine. This leads me to believe that it's a network problem, but I have no idea what that could be, so I was hoping(!) that it's something below. CFSocketContext socketContext = {0, self, NULL, NULL, NULL}; advertiseSocket = CFSocketCreate(kCFAllocatorDefault, PF_INET, SOCK_DGRAM, IPPROTO_UDP, kCFSocketDataCallBack,

WebRTC multicast (one-to-many) [closed]

跟風遠走 提交于 2019-12-03 09:38:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Hi I have questions about WebRTC. I would like create one-to-many (1:N) connection with MCU server (because stream from source is too big (CPU,bandwidth...)), but I don't know how can I do that, exists some project for this? I found only EasyRTC, Licode etc. but I guess that is just for videoconferencing (many

UDP multicast client does not see UDP multicast traffic generated by tcpreplay

為{幸葍}努か 提交于 2019-12-03 06:22:48
I have two programs: server ... it generates UDP traffic on a chosen multicast listener ... it prints UDP traffic on a chosen multicast (it subscribes to a multicast and prints whatever it receives). When I run the server on one machine and listeners on some (other) machine(s), the listener sees UDP traffic and prints it correctly. So these programs should be in a good shape. However, when I try to capture the traffic, on whatever machine, with tcpdump: sudo tcpdump -i eth0 'dst 233.65.120.153' -w 0.pcap and when I later try to replay it, on whatever machine, with tcpreplay: sudo tcpreplay -i

Multicasting on the loopback device

 ̄綄美尐妖づ 提交于 2019-12-03 06:14:10
I wish to send UDP multicast packets to loopback address and receive the same in other application. All tests done on fedora core 17 Linux. The idea is to receive a video stream via RTSP/HTTP or any other network protocol and multicast it on the loopback address so that I can use VLC to play the stream using multicast address. Leaving aside other bitrate and controlled multicast issues, I tried to read one video file and multicast on loopback device. But when tried to play the same on vlc it didn't worked. I'm able to see packet getting transmitted in wireshark but the src ip is taken from my

Wireshark: Filter by Multicast in GUI

China☆狼群 提交于 2019-12-03 05:51:08
问题 Using the Wireshark "Filter" field in the Wireshark GUI, I would like to filter capture results so that only multicast packets are shown. I've seen this post but that doesn't work for the GUI filter field. This Wireshark page shows how to filter out multicast, but not how to filter everything but multicast. Does anyone know of a simple statement that will do this? Thank you in advance! 回答1: Just use this (eth.dst[0] & 1) . Multicast traffic is recognized by the least significant bit of the

NodeJS UDP Multicast How to

谁说胖子不能爱 提交于 2019-12-03 04:50:38
问题 I'm trying to send a UDP Multicast Packet to: 230.185.192.108 so everyone subscribed will receive. A bit stuck. I believe it's broadcasting correctly, but can't seem to pick anything up with any client. Server: var news = [ "Borussia Dortmund wins German championship", "Tornado warning for the Bay Area", "More rain for the weekend", "Android tablets take over the world", "iPad2 sold out", "Nation's rappers down to last two samples" ]; var dgram = require('dgram'); var server = dgram