broadcast

Receiving response(s) from N number of clients in reply to a broadcast request over UDP

Hi All, I am implementing a kind of IP finder for a particular type of network multimedia device. I want to find out all the alive devices of that type in the LAN, with their IP address and other details. The device has its own way of device discovery. It works as follows: A client sends a broadcast request over the LAN via UDP. Th...

How do I get rid of broadcast routing entries to the link-local (169.254.x.x) address range in Windows 7? These cause UDP broadcast problems.

I've been having problems with a third-party application that uses UDP broadcasts to configure some propitiatory networked hardware and I think I've worked out what's going on. It seems that all outgoing broadcast packets are being lost because of bunch of entries in my routing table that route broadcast packets to a non-existent link-lo...

[C#]Network Discovery of an application for peer to peer network

I wish to have two classes, a server class and a client class. The server class should recieve the IP address and Port number of each new client and store them in a list. It should supply each of the clients with a list of connected clients and their IP addresses. The clients could then communicate with each other using TCP connection...

Icecast server status

Does anybody know, how to check if broadcast is online or offline in Icecast2 server? Ruby preferred. ...

How determine database server IP via UDP in Java

Hi, I am writing clients in Java that store the data on a database server. So far, the IP and Port of the server has to be specified in the client's settings manually. I have heard, that it is possible to automatically determine the IP of database servers via broadcast / multicast / UDP (I am not familiar with these concepts). Question: ...

Custom broadcast events in AS3?

In Actionscript 3, most events use the capture/target/bubble model, which is pretty popular nowadays: When an event occurs, it moves through the three phases of the event flow: the capture phase, which flows from the top of the display list hierarchy to the node just before the target node; the target phase, which comprises the targe...

SNMP Broadcast on Windows

I'm writing an SNMP agent in windows. The agent responds fine simple get and get-next request sent directly to computer's ip address. But when I do a SNMP broadcast, the computer receives the packet but does not anwer that. Why is that? The firewall is off and the antivirus too. ...

Notify a service from a PhoneStateListener

Hi I have built an application that listen to call state changes, and I want to notify a service when the call_state became IDLE. All the components I have are functional, I just need to notify (not start) a service for this. What's the correct practice, maybe using AIDL? Because, in a PhoneStateListener, I can't bind to a service....

Issues with ACTION_HEADSET_PLUG broadcast in Android

I've tried these phones: Motorolla Backflip 1.5, Nexus One 2.1 Basically I register BroadcastReceiver to get ACTION_HEADSET_PLUG broadcast and look on 3 extras that come in intent: state name microphone Here is the description from API: * state - 0 for unplugged, 1 for plugged. * name - Headset type, human readable string * microph...

Creating a heavily restricted server discovery application in c#

Dear community. I am writing you because of a new problem I need to solve, and I have now been banging my head against a wall for too long now. Basically, I need to create an application that can take care of the following: A user starts an app, which sends a broadcast to the subnet, and recieves a response of all servers there with t...

Is it possible to write an Android broadcast receiver that detects when the phone wakes up?

I want to figure out how to detect when the phone wakes up from being in the black screen mode and write a handler for that event. Is that possible? It seems like this would be something a Broadcast Receiver should handle? Or is there a better or more proper way? Thanks ...

Receiving broadcast packets using packet socket

Hello I try to send DHCP RENEW packets to the network and receive the responses. I broadcast the packet and I can see that it's successfully sent using Wireshark. But I have difficulties receiving the responses.I use packet sockets to catch the packets. I can see that there are responses to my RENEW packet using Wireshark, but my functi...

Is it possible to suppress loopback of broadcasted packets?

Hello guys, I have a .NET program that "listens" and broadcasts on the same port. So, when it broadcasts packets, these packets loop back to my program, and I wish it didn't happen. Is there a way to block broadcast loopback? ...

How do I broadcast a hostname using Ruby's net-mdns?

Hi there. I'm new to net-mdns and mDNS in general, so I have just a basic understanding of how the protocol works for now, and I hope the question is pretty self-explanatory. So far I've seen some examples of how to advertise a service with net-mdns, but what I really need is to broadcast a hostname alias, so that my machine can be reso...

execl doesn't work in a while(1) loop, server side; C script

I have a problem with a little C script which should run as a server and launch a popup for every message arriving. The execl syntax is correct because if I try a little script with main() { execl(...); } it works. When I put it in a while(1) loop it doesn't work. Everything else is working, like printf or string operation, but not ...

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/BroadcastReceiver.html http://developer.android.com/reference/android/R.styleable.html It doesn't seem so, but I don't fully understand t...

How can I know the IP address of a remote host by using UDP broadcast message?

Hi All, I am developing an embedded system and very new to this TCP\IP. My problem is that once I installed my board in a local network and this board will acquire its IP address dynamically, it has to communicate with a client application running on one of the PC(other than DHCP server) in the network. To communicate with this new boar...

UDP broadcast problem

I'm trying to do something like this. There is one server , and multiple clients in the same subnet. Clients will send something to server and server will send this message back to all the other clients in the subnet. So this looks like broadcast to me. But i never could manage to do this in C.. I'd be glad if you give me an example of t...

Starting an activity from Broadcast receiver in android

I am trying to launch the Main Activity from a broadcast receiver. Can anyone guide me as to how I can do it? I always get "Process is Bad" message. Thanks ...

Android - sendOrderedBroadcast help

I am trying to use a sendOrderedBroadcast in my Android app. I want to be able to send the Intent from one of my applications to another and I then want to get data back from the Application that recieves the Intent, in this case a boolean true or false. Here is the current code: Intent i = new Intent(); i.setAction(GlobalData...