Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow subclasses to manipulate reachabilityFlags #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 1, 2014

  1. Allow subclasses to manipulate reachabilityFlags

    Previously, many methods made a direct call to
    SCNetworkReachabilityGetFlags(reachabilityRef, &flags) to get the flags.
    Since we already have a method that does this, we can "program to an
    interface" and have all flag queries go through `-reachabilityFlags` to
    gain readability (IMO) and more importantly the ability of subclasses
    overriding `-reachabilityFlags` for testing purposes.
    woahdae authored and Woody Peterson committed Jan 1, 2014
    Configuration menu
    Copy the full SHA
    d33c5df View commit details
    Browse the repository at this point in the history