This was simply an error in documentation. It actually returns an sf::Socket::Status enum value as a result.