allow user to send ping and listen to ping/pong
Updated for arm64 compatibility

Note that Xcode requires iOS6 as the earliest deployment platform for cross-
compilation of arm32 / arm64 code.
Added cast to silence compiler warning
Got fixed warnings involving converting from size_t to uint64_t. Also eliminated unnecessary code lines.