Skip to content

Broadcasting timestamp between servers/containers

Notifications You must be signed in to change notification settings

s-kali/brdstamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brdstamp

This scripts are used to observe timezones between servers, containers etc.

How to

Sender

You can execute sender script to send timestamp as broadcast message

python sender.py

Receiver

You can execute receiver script to receive timestamp of senders and print time difference as timestamp

python receiver.py

Test environment

You can simply use Compose to build 4 Alpine containers that sends broadcast message using sender script

docker-compose up -d

You can use receiver script by executing interactive shell on a container

docker exec -ti <CONTAINER> sh
python receiver.py
PS: containers run on same environment so there is no time diff, this test is not really realistic

About

Broadcasting timestamp between servers/containers

Resources

Stars

Watchers

Forks