Returns the IP address version. 0 if empty, 4 or 6 if nonempty.

Synopsis

Declared in <folly/IPAddress.h>

uint8_t
version() const;

Return Value

The address version: 0 if empty, 4 or 6 otherwise.

Created with MrDocs