Questions tagged [broadcast]

A broadcast is a one-to-many message passing interface. It is usually used in the context of a network programming or event-driven programming.

broadcast
Filter by
Sorted by
Tagged with
134 votes
9 answers
56k views

WebRTC - scalable live stream broadcasting / multicasting

PROBLEM: WebRTC gives us peer-to-peer video/audio connections. It is perfect for p2p calls, hangouts. But what about broadcasting (one-to-many, for example, 1-to-10000)? Lets say we have a ...
igorpavlov's user avatar
  • 3,586
86 votes
2 answers
90k views

Using MPI_Bcast for MPI communication

I'm trying to broadcast a message from the root node to all other nodes using MPI_Bcast. However, whenever I run this program it always hangs at the beginning. Does anybody know what's wrong with it? ...
David's user avatar
  • 2,150
81 votes
13 answers
71k views

Where is the all Android broadcast Intent list

I want to receive the Android broadcast messages. Is there a list of all intents?
batfree's user avatar
  • 1,881
68 votes
6 answers
49k views

Android - how to receive broadcast intents ACTION_SCREEN_ON/OFF?

<application> <receiver android:name=".MyBroadcastReceiver" android:enabled="true"> <intent-filter> <action android:name="android....
ohnoes's user avatar
  • 5,582
61 votes
4 answers
116k views

How to send and receive broadcast message

I am trying to pass data between two activities that are inside of tabs. I am trying to use sendBroadcast(). With breakpoints set I never reach onReceive(). Manifest: <activity android:...
Yack's user avatar
  • 1,410
58 votes
9 answers
51k views

Is there a broadcast action for volume changes?

I'm programming a small widget that needs to be updated whenever the user changes the ringer volume or the vibrate settings. Capturing android.media.VIBRATE_SETTING_CHANGED works just fine for the ...
luthier's user avatar
  • 2,736
56 votes
7 answers
53k views

How to Send BroadCast from one app to another app

I have App A and App B. In App A I want to send broadcast to App B. This is the code for App A: final Intent intent = new Intent(); intent.setAction("com.pkg.perform.Ruby"); intent.putExtra("KeyName",...
abh22ishek's user avatar
  • 2,651
55 votes
4 answers
84k views

socket.io - how to broadcast messages on a namespace?

According to socket.io examples: To broadcast, simply add a broadcast flag to emit and send method calls. Broadcasting means sending a message to everyone else except for the socket that starts it. ...
JustAMartin's user avatar
  • 13.4k
46 votes
3 answers
56k views

Can I use broadcast or multicast for TCP?

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 ...
Alex's user avatar
  • 12.8k
39 votes
6 answers
27k views

How can I update a broadcast variable in spark streaming?

I have, I believe, a relatively common use case for spark streaming: I have a stream of objects that I would like to filter based on some reference data Initially, I thought that this would be a ...
Andrew Stubbs's user avatar
38 votes
6 answers
125k views

How to set java.net.preferIPv4Stack=true at runtime?

I need to disable IPv6. For that the java documentation indicates setting jvm property java.net.preferIPv4Stack=true. But I don't understand how to do it from the code itself. Many forums ...
Caffeinated Coder's user avatar
36 votes
3 answers
26k views

Difference between Service and Broadcast receivers in android

I want to know the difference between services and broadcast receivers, can anyone point out an example that can be observed on android mobile devices. Thanks
prago's user avatar
  • 5,305
32 votes
5 answers
97k views

How can I determine network and broadcast address from the IP address and subnet mask?

For example: IP Address: 130.45.34.36 Mask: 255.255.240.0 What would be Net ID/Subnet Address, and Broadcast Address?
Apprentice's user avatar
32 votes
3 answers
55k views

Receiving Broadcast Packets in Python

I have the following code which sends a udp packet that is broadcasted in the subnet. from socket import * s=socket(AF_INET, SOCK_DGRAM) s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1) s.sendto('this is ...
nitish712's user avatar
  • 19.6k
32 votes
3 answers
34k views

DownloadManager.ACTION_DOWNLOAD_COMPLETE broadcast receiver receiving same download id more than once with different download statuses in Android

I am using Android DownloadManger System Service for downloading some files in following way dwnId = mgr.enqueue(new DownloadManager.Request(serveruri) .setAllowedNetworkTypes(...
Ganesh K's user avatar
  • 2,663
30 votes
3 answers
26k views

AngularJS $broadcast with multiple parameters

Can I have a $broadcast $on with multiple parameters, something like: $scope.$broadcast('event',$scope.item, $scope.item); Is it possible to have something like this or something similar in any case ...
blaa's user avatar
  • 801
29 votes
3 answers
51k views

UDP-Broadcast on all interfaces

On a Linux system with a wired and a wireless interface (e.g. 192.168.1.x and 192.168.2.x subnets) I want to send a UDP broadcast that goes out via ALL available interfaces (i.e. both through the ...
user avatar
26 votes
5 answers
30k views

Android : restart application after update - ACTION_PACKAGE_REPLACED

My application that is not on Play Store verify on the web If there are a new version and download and start it. After the installation I would like to restart the application and I would use a ...
MisterX_Dev's user avatar
25 votes
6 answers
27k views

angularJS $on event handler trigger order

I was wondering two things, in the context of angularJS event handling. How is defined the order in which handlers listening to the same event are triggered? Is it a sign of a bad design if you ...
Renaud's user avatar
  • 4,638
25 votes
1 answer
27k views

Multicast vs Broadcast in LAN

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 ...
slartibartfast's user avatar
24 votes
4 answers
38k views

Send Broadcast datagram

I need to send a broadcast datagram to all machine (servers) connected to my network. I'm using NodeJS Multicast Client var dgram = require('dgram'); var message = new Buffer("Some bytes"); var ...
Wassim AZIRAR's user avatar
23 votes
1 answer
19k views

Bluetooth broadcasting

I want to broadcast data from one device using Bluetooth to numerous nearby devices. Now, I know Bluetooth broadcasting exists, but is it possible using Android's existing API? If not, are there any ...
Jong's user avatar
  • 9,075
21 votes
2 answers
11k views

How to correctly filter Package replaced broadcast

I am trying to catch the package replaced broadcast for my app and only my app, but for some reason in my reciever I am the broadcast for every app that is updated. I thought you only needed to set ...
ninjasense's user avatar
  • 13.8k
20 votes
11 answers
60k views

Problems with SO_BINDTODEVICE Linux socket option

I have a PC with two network cards. One (eth0) is for LAN/internet and the other for UDP communication with one microcontroller device. The microcontroller has an IP (192.168.7.2) and a MAC address. ...
user avatar
20 votes
3 answers
77k views

Network UDP broadcast design?

I am working on a C++ server/.NET client applications couple in which my server (which runs the c++ on linux) broadcasts a message to show it's alive to the whole network and my .NET program listens ...
Andrei Zisu's user avatar
  • 4,352
20 votes
1 answer
46k views

Python UDP Broadcast not sending

I am trying to UDP broadcast from a Python program to two LabView programs. I cannot seem to get the broadcast to send and I am not sure where my socket initialization is wrong, broadcasting seems ...
TDK's user avatar
  • 255
20 votes
2 answers
40k views

Send Broadcast UDP but not receive it on other Android devices

I am trying to develop an app that sends some broadcast messages and receives some answers from the other android devices. I am having some trouble receiving the UDP messages from the other devices. I ...
Lara's user avatar
  • 781
19 votes
3 answers
44k views

What is the maximum size for a broadcast object in Spark?

When using Dataframe broadcast function or the SparkContext broadcast functions, what is the maximum object size that can be dispatched to all executors?
Kirk Broadhurst's user avatar
18 votes
6 answers
32k views

Turn on screen on device

How can I turn the sceen on ? I tried something like this adb -d shell am broadcast -a android.intent.action.SCREEN_ON It really should work, I send broadcast intent it is received by the system, ...
Lukap's user avatar
  • 31.8k
18 votes
5 answers
60k views

Calculate broadcast address from ip and subnet mask

I want to calculate the broadcast address for: IP: 192.168.3.1 Subnet: 255.255.255.0 = 192.168.3.255 in C. I know the way (doing fancy bitwise OR's between the inversed IP and subnet), ...
user avatar
18 votes
2 answers
25k views

Angular 2 event broadcast

New to Angular 2. I'm working on broadcast a event between same level component. Currently I know EventEmitter just can transfer a event to upper level component. I have checked this this link and ...
Garry's user avatar
  • 1,189
18 votes
1 answer
23k views

boost::asio UDP broadcasting

I want to broadcast UDP messages to all computers in a local network using boost::asio. Working through the examples I came up with try { socket.open(boost::asio::ip::udp::v4()); boost::asio:...
nikolas's user avatar
  • 8,827
18 votes
3 answers
14k views

AngularJs/ .provider / how to get the rootScope to make a broadcast?

Now my task is to rewrite $exceptionHandler provider so that it will output modal dialog with message and stop default event. What I do: in project init I use method .provider: .provider('$...
Stepan Suvorov's user avatar
18 votes
1 answer
5k views

How can Android broadcast BLE local name like in iOS?

I've got an Android app advertising ble broadcast data with a service uuid and local name. The problem is that this "local name" (aka bluetooth device name) is limited to 8 characters, each is a 16-...
DritanX's user avatar
  • 753
17 votes
1 answer
7k views

Possible to set BroadcastReceiver priority programmatically?

Is it possible to set the priority attribute of a BroadcastReceiver programmatically or can it only be done in XML? Relevant documents include: http://developer.android.com/reference/android/content/...
ChaimKut's user avatar
  • 2,799
16 votes
4 answers
48k views

Is broadcasting via TCP possible?

I'm writing a server/client system in C, which uses BSD Sockets under a TCP connection. The server is multi-threaded, with each connection running in its own receptor. Each client does a good job ...
Anthony's user avatar
  • 225
15 votes
4 answers
24k views

Sending packets to 255.255.255.255 by Java DatagramSocket fails

I'm programming a networking program in java , and I want to send some Packets to 255.255.255.255, but it fails , even when I send them to 192.168.1.255, which according to the output of ifconfig ...
Pro.Hessam's user avatar
15 votes
1 answer
8k views

Can UDP broadcasts be received by multiple apps on the same computer?

As an example, suppose I have a 'smart' thermometer that broadcasts the current temperature as a UDP datagram every N seconds. Now, I can write a client that listens for those messages and displays ...
Roddy's user avatar
  • 67.3k
15 votes
1 answer
15k views

Broadcasting over Wi-Fi Direct

I'm looking at the possibility to broadcast over a Wi-Fi Direct connection between multiple Android devices. I've created a simple message broadcasting application to test whether or not it works, but ...
KatoStoelen's user avatar
15 votes
1 answer
10k views

Detecting all available network's broadcast addresses in Java

For my project I wanted to get a list of all available broadcast addresses so I could broadcast a request and my other application located on other computer in the unspecified network would respond ...
14 votes
1 answer
37k views

shape mismatch: indexing arrays could not be broadcast together with shapes

j=np.arange(20,dtype=np.int) site=np.ones((20,200),dtype=np.int) sumkma=np.ones((100,20)) [sumkma[site[x],x] for x in range(20)] This works, but I don't want to use for loop. When I try sumkma[site[...
kinder chen's user avatar
  • 1,431
14 votes
1 answer
9k views

Broadcast receiver not working in ICS if the app is not started atleast once

This question has been asked few times in stack overflow, but no solution, yet. I have a broadcast receiver for for receiving USB connected action.The broadcast receiver responsibility is , if I get ...
Kozlov's user avatar
  • 564
13 votes
2 answers
3k views

Pendingintent getbroadcast lost parcelable data

Here is the problem. My program is running perfect in Android 6.0. After update the device to android 7.0. Pendingintent can not pass the parcelable data to boradcast reveiver. Here is the code. Fire ...
BIN's user avatar
  • 145
13 votes
5 answers
17k views

Listen for app installed / upgraded broadcast message in Android

Using Lookout app (https://play.google.com/store/apps/details?id=com.lookout), I see every time I install or upgrade app, it'll automatically scan this app to ensure it's not malicious. Follow ...
anticafe's user avatar
  • 6,826
13 votes
1 answer
9k views

What is the best way to implement device discovery on a LAN

I have little experience in network programming and I am writing a multi platform system which requires each device to be able to find other devices within the same LAN. I am looking for the right ...
NachoChip's user avatar
  • 307
13 votes
3 answers
3k views

Broadcasting UDP packets using multiple NICs

I'm building an embedded system for a camera controller in Linux (not real-time). I'm having a problem getting the networking to do what I want it to do. The system has 3 NICs, 1 100base-T and 2 ...
user1044200's user avatar
13 votes
1 answer
3k views

docker docker0 and container broadcast addresses not set

I'm "dockerizing" an app which does UDP broadcast heartbeating on a known port. This is with docker-engine-1.7.0 on a variety of hosts (Fedora, Centos7, SLES 12). I notice that the 'docker0' ...
Chris Love's user avatar
12 votes
4 answers
24k views

How are custom broadcast events implemented in JavaScript (or jQuery)?

I want to implement a custom event that can be "broadcast", rather than sent to specific targets. Only those elements that have registered themselves as listeners for such events will receive them. ...
kjo's user avatar
  • 34.4k
12 votes
3 answers
8k views

AngularJS event propagation--siblings?

I understand that $emit sends messages up the DOM tree, and $broadcast sends messages down. What about sending messages between sibling DOM elements—how do I do that?
core's user avatar
  • 32.8k
12 votes
6 answers
3k views

Should my server use both TCP and UDP?

I'm writing a client/server application and really can't find guides that fit my need. Doing it on my own leads me to many design flaws before I've even begun. For instance the server should update ...
user2651804's user avatar
  • 1,524

1
2 3 4 5
39