I am familiar with the Arduino IDE,need a very tiny porgram running on a raspber

Hi,

I am familiar with the Arduino IDE, I need a very tiny program running on a raspberry pi.

My main program runs on an ESP8266 and sends UDP messages to a closed source program on a Raspberry Pi.
I would need a very small routine running on the Pi itself.

I am familiar with the Arduino IDE, and I need a very tiny program running on a Raspberry itself:

If a byte is received on and from its own IP (localhost) on a given UDP port and this byte is < 32, it should be immediately bounced back.

What is the leanest way to compile that on the Arduino IDE?

Github: me-no-dev / RasPiArduino?

That should be the way to go, but I am a bit irritated on which UDP library to use to do the job.

me-no-dev tells to use the Bridge library, but that one has been written for the Yun to communicate between Linux and the Arduino.

Is it really the lib to use?

The Bridge library simplifies communication between the ATmega32U4 - or the board attached if you use the shield - and the AR9331. Bridge commands from the board microcontroller are interpreted by Python on the AR9331. Its role is to execute programs on the GNU/Linux side when asked by Arduino, provide a shared storage space for sharing data like sensor readings between the Arduino and the Internet, and receiving commands from the Internet and passing them directly to the Arduino.

Bridge allows communication in both directions, acting as an interface to the the Linux command line. For a brief explanations of the terminal and executing commands on Linux see here.