If the POP RFC doesn't say anything about the value limits, you can probably use unsigned int for msgs_count and off_t (or size_t) for msgs_size.