Add iproto_constants.h  header file and collect all constants in it.

Use the constants consistently across the code base.