ping source codes