Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Listen for incoming messages from android-notifier and pass them to a notification application
C Shell
Tree: b4630bdf5b

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
.gitignore
Makefile
README.md
android-receiver.c
config.mk

README.md

Android Receiver

Description

Listen for broadcast messages from android-notifer coming over a specific port. Parse the message, format it, and hand it off for display.

This was done mostly as a learning exercise in C.

Installation

git clone https://github.com/pbrisbin/android-receiver
cd android-receiver
make

This will compile the android-receiver binary in the current directory. Put it somewhere in $PATH.

Usage

android-receiver [ --port <port> ] --handler <handler>

Port is optional and defaults to 10600. The handler you specify will be called asynchronously with the formatted message as the first and only argument.

You can find an example handler using dzen under ./bin.

Notes

My machine is setup to block TCP broadcast packets as per Arch's "Simple stately firewall". Rather than change this setting, I've elected to setup the notifier app on my phone to send a UDP packet to a specific IP address instead.

That is what this program expects.

Something went wrong with that request. Please try again.