add poll_fd() to C++ client.

Signed-off-by: Sean Ogden <positivelyskewed.sf@gmail.com>