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.

1905 questions
18
votes
3 answers

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
  • 27,836
  • 16
  • 104
  • 169
18
votes
2 answers

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 know observable may be a way to solve my problem,…
Garry
  • 1,177
  • 3
  • 14
  • 22
18
votes
1 answer

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-bit unicode representation, thus 2-bytes per…
DritanX
  • 753
  • 7
  • 18
18
votes
3 answers

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('$exceptionHandler', function(){ //and here I would like to…
Stepan Suvorov
  • 25,118
  • 26
  • 108
  • 176
17
votes
1 answer

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…
ChaimKut
  • 2,759
  • 3
  • 38
  • 64
16
votes
4 answers

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 talking with the server on a one-to-one basis,…
Anthony
  • 225
  • 1
  • 2
  • 6
15
votes
4 answers

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 command , is the broadcast address. But when I send…
Pro.Hessam
  • 819
  • 3
  • 11
  • 26
15
votes
1 answer

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 and to get the list I (now using little modified…
Martin
  • 3,445
  • 4
  • 23
  • 21
15
votes
1 answer

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 so far I haven't been able to broadcast a…
KatoStoelen
  • 188
  • 1
  • 1
  • 7
15
votes
1 answer

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 them graphically, and I can have that client…
Roddy
  • 66,617
  • 42
  • 165
  • 277
14
votes
1 answer

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 the intent start my application.In the manifest…
13
votes
3 answers

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 gigabit ports. I hook the slower one up to the…
user1044200
  • 141
  • 1
  • 6
13
votes
1 answer

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[j],j] I get this error: IndexError: shape…
kinder chen
  • 1,371
  • 5
  • 15
  • 25
13
votes
2 answers

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 the alarm public static void setAlarm(@NonNull…
13
votes
1 answer

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 approach to do that, and hope that people here can…
NachoChip
  • 297
  • 4
  • 13