Use extern to communicate socket definition through rpc.h interface.