add send ping and receive ping function