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.
Questions tagged [broadcast]
1905 questions
13
votes
5 answers
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 Lookout, I write a simple app which listen broadcast…

anticafe
- 6,816
- 9
- 43
- 74
12
votes
1 answer
Python pandas : Merge two tables without keys (Multiply 2 dataframes with broadcasting all elements; NxN dataframe)
I want to merge 2 dataframes with broadcast relationship:
No common index, just want to find all pairs of the rows in the 2 dataframes.
So want to make N row dataframe x M row dataframe = N*M row dataframe.
Is there any rule to make this happen…

notilas
- 2,323
- 4
- 23
- 36
12
votes
6 answers
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 every client as to its state many times each…

user2651804
- 1,464
- 4
- 22
- 45
12
votes
1 answer
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' bridge on the docker host and 'eth0' inside the…

Chris Love
- 121
- 1
- 3
12
votes
4 answers
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.
What I have in mind would look as follows.
First,…

kjo
- 33,683
- 52
- 148
- 265
12
votes
3 answers
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
- 32,451
- 45
- 138
- 193
12
votes
5 answers
How to ignore your own broadcast udp packets
For the following I'm assuming one network card.
I have a component of my program which is designed to let others in the subnet know of its existence. For this, I've implemented a solution where whenever the program starts up (and periodically…

laura
- 7,280
- 4
- 35
- 43
12
votes
1 answer
AngularJS can a $on method be called more than once for a single $broadcast?
I'm seeing some very odd behaviour in my AngularJS app.
When a single $broadcast is made, the (only) receiver is fired twice.
The effect on the whole app is as if the receiver was only fired once. (i.e. only one of the item is added to the basket).…

fadedbee
- 42,671
- 44
- 178
- 308
11
votes
1 answer
Why is netcat unable to receive the second broadcast message?
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 receive the second broadcast message.
Programs
Here…

Susam Pal
- 32,765
- 12
- 81
- 103
11
votes
1 answer
PHP : Send an UDP broadcast message , and wait the response
I used this code to send an UDP broadcast message
$ip = "255.255.255.255";
$port = 8888;
$str = "DEVICE_DISCOVERY";
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
socket_set_option($sock, SOL_SOCKET, SO_BROADCAST, 1);
socket_sendto($sock,…

WhiteLine
- 1,919
- 2
- 25
- 53
11
votes
3 answers
Why would LocalBroadcastManager not work instead of Context.registerReceiver?
I had to implement a feature to this app which consists of an Activity and a Service working on the background (it implements Service, not IntentService).
I went through a few tutorials on the Internet that are supposed to work, and they all use…

Teo Inke
- 5,928
- 4
- 38
- 37
11
votes
4 answers
AudioSource.VOICE_CALL not working in android 4.0 but working in android 2.3
VOICE_CALL, VOICE_DOWNLINK ,VOICE_UPLINK
not working on android 4.0 but working on android 2.3 (Actual Device),I have uploaded a dummy project to record all outgoing call so that you can see it for your…

Auto-Droid ツ
- 1,583
- 1
- 17
- 31
11
votes
3 answers
Detect screen on/off from iOS service
I am developing a network monitor app that runs in background as a service. Is it possible to get a notification/call when the screen is turned on or off?
It exists in Android by using the following code:
private void…

Sunkas
- 9,542
- 6
- 62
- 102
11
votes
1 answer
Receiving UDP broadcast packets on Linux
We have existing software that periodically broadcasts UDP packets to a specific port (7125) on the local subnet (x.x.x.255). We have monitoring software running on HP-UX (11.11) that is able to receive these packets no problem. However, after…

goose
- 111
- 1
- 1
- 4
11
votes
2 answers
How to use getApplicationContext in BroadcastReceiver class?
I am using the broadcaster class to listen to sms messages using this code
package com.escortme.basic;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import…

omega
- 40,311
- 81
- 251
- 474