sendmsg and ping