GitHub - Athular/event-clock: A simple UDP clock service, using libevent

Skip to content

Navigation Menu

Sign in

Appearance settings

This implements a simple UDP clock service using libevent. It's mostly just an example of a simple libevent program.

You send it an empty UDP packet on the port it listens on (by default 1497), and it responds with a struct timeval representing the time from the last clock event.

You build and run the clock server like this: make ./clock

You run the client program like this: python client.py

Languages

  • C 73.7%
  • Python 23.1%
  • Makefile 3.2%