broadcast

Phone doesn't send all stored ssids while capturing Wi-Fi probe wequests

冷暖自知 提交于 2019-12-06 02:58:58
问题 I build a script with scapy to capture probe requests in a monitornig wi-fi interface. I successfully capture the requests, and some of the SSIDs contained in them. But most of the networks stored in the phone don't get broadcasted. And there isn't a clear pattern of why this happens. Some phones don't broadcast ssids at all. I'm trying to find an explanation for the reasoning behind this behaviour, but haven't found any, apart that the hidden networks should be broadcasted in order for the

Does Java NIO support broadcast or multicast?

两盒软妹~` 提交于 2019-12-06 00:40:44
I am searching if Java NIO implements broadcast. I need to create a peer that sends messages to other peers, using multicast or broadcast. I was searching in the API 1.6, but I don't find anything in the DatagramChannel class. Thanks in advance. NIO2 supports multicast, that's in Java 7. http://javanio.info/filearea/nioserver/WhatsNewNIO2.pdf Before NIO2 you have to make use of all kinds of hacks to make a datagram channel join a multicast group. Not sure how they could have left multicast channels out of NIO1. You don't need to use NIO for this, java.net.MulticastSocket supports this directly

Send broadcast from one apk/package to another apk/package

核能气质少年 提交于 2019-12-06 00:18:07
问题 I need to send broadcast from my one application to another applicaion.. any help! my application package are 1)com.demo.database and 2)com.demo.list Intent themesIntent = new Intent(ThemesManager.THEMES_UPDATED); themesIntent.putExtra("package", packageName); ctx.sendBroadcast(themesIntent); not working.. Edits : <receiver android:name="com.sample.ThemesUpdatedReceiver"> <intent-filter> <action android:name="com.sample.THEMES_UPDATED"/> </intent-filter> </receiver> 回答1: @Ajit: Hi, Since

Connecting a Docker container to a network interface / device instead of an IP address

不问归期 提交于 2019-12-05 23:44:59
问题 After careful research, testing, and fiddling, I've only been able to find away to connect a Docker container to a given interface by forwarding from an IP/port. This can be accomplished by adding -p Host-IP:Host-Port:Container-Port to a docker run command. I have an app that listens for UDP broadcasts (255.255.255.255), and have been unable to configure forwarding in such a way that my container will receive those broadcasts without forwarding all network traffic on the port I care about (no

Android Receive UDP broadcast from C# desktop app over LAN?

拟墨画扇 提交于 2019-12-05 17:47:05
I'm trying to create a sever application on PC for many android devices using the same wi-fi network. The devices will find the server's IP by receiving UDP broadcast from it contains the server IP data. I've started by creating a sample udp broadcaster in C# and udp receiver in java but I never managed to get the packet on the android side . here is the code : C#: UdpClient listener = new UdpClient(listenPort); IPEndPoint groupEP = new IPEndPoint(IPAddress.Broadcast, listenPort); listener.Connect(groupEP); listener.EnableBroadcast = true; byte[] data = new byte[1024]; try { while (!done) {

How to make call to service from receiver depends on Internet connected or not?

a 夏天 提交于 2019-12-05 12:44:01
I know how to checking if internet is available or not in the activity, my requirement is, actually i am storing some values in DB when the device in offline ( no internet), when it comes to online have to pass DB values to the server with out user interactivity. how can i achieve this. i got this example How to check the Internet Connection periodically in whole application? but it's working only for one activity , how to make it as global. Shahzad Imam Use this in your receiver <receiver android:name=".UpdateReceiver" > <intent-filter> <action android:name="android.net.conn.CONNECTIVITY

android : detect the reinstall of an app from the app code

左心房为你撑大大i 提交于 2019-12-05 11:37:59
Is there a way to detect from app code when it is being reinstalled. I saw that app update from market can be detected by listening to PACKAGE_REPLACED event in broadcast receiver. But that these events are not delivered to the app , if the app is reinstalled from editor (eclipse ). My requirement is that i am disabling a component(Launcher activity). The app install will fail if it is not enabled. SO everytime before reinstall i want to enable this component. I am talking about the reinstall before publishing in market. While developing , each time i reinstall the app to test some

Broadcast messages in celery

ⅰ亾dé卋堺 提交于 2019-12-05 11:05:42
I'm using celery and want to send broadcast task to couple of workers. I'm trying to do it like is described on http://docs.celeryproject.org/en/latest/userguide/routing.html#broadcast so I create simple app with task: @celery.task def do_something(value): print value and in app I made: from kombu.common import Broadcast CELERY_QUEUES = (Broadcast('broadcast_tasks'), ) CELERY_ROUTES = {'my_app.do_something': {'queue': 'broadcast_tasks'}} and then I was trying to send task to workers with: my_app.do_something.apply_async(['222'], queue='broadcast_tasks') or: my_app.do_something.apply_async([

How to listen for Windows broadcast messages in .NET?

假装没事ソ 提交于 2019-12-05 10:11:49
i have an Object (i.e. not a form) that wants to listen for broadcast messages from Windows, e.g.: WM_SETTINGCHANGE WM_DWMCOLORIZATIONCOLORCHANGED WM_DWMCOMPOSITIONCHANGED WM_THEMECHANGED WM_POWERBROADCAST What is the mechanism in .NET to setup a non-WinForm's window, that can listen for broadcast messages? i.e. Is there a WindowsListener class? Bonus Chatter In the olden days, in other development environments, the framework provided an AllocateHwnd function: HWND listener = AllocateHWnd(ListenerWindowProc); where ListenerWindowProc was my window procedure method: private void

Receiving UDP broadcast packet at Pixel 2 and Pixel 2 XL

淺唱寂寞╮ 提交于 2019-12-05 10:08:55
I am developing an app receiving UPD broadcast packet from Wi-Fi camera. It used to be good before I found the problem in receiving UPD broadcast packet at Google Pixel 2 / Pixel 2 XL. To figure out the reason, I made 2 test apps: one is UPD broadcast sender( https://senatech.box.com/s/gmhr391pbl32lqai0mhkffyk6j0ckle5 ), the other is UDP broadcast receiver( https://senatech.box.com/s/abamuor47nlafocs035nfuj90d0uvx0m ). I have tested them on some android devices and found that Google Pixel 2 / Pixel 2 XL cannot revceive UDP broadcast packet. Android devices except Pixel 2 / Pixel 2 XL work well