maxWireVersion property
The latest version of the wire protocol that this mongod or mongos instance is capable of using to communicate with clients. Clients may use maxWireVersion to help negotiate compatibility with MongoDB.
Implementation
int maxWireVersion;