Create client.cpp

test case for issue 778 
total two files