Class NEAppProxyFlow

  • All Implemented Interfaces:
    NSObject
    Direct Known Subclasses:
    NEAppProxyTCPFlow, NEAppProxyUDPFlow

    public class NEAppProxyFlow
    extends NSObject
    [@interface] NEAppProxyFlow The NEAppProxyFlow class is an abstract base class that declares the programmatic interface for a flow of network data. NEAppProxyFlow is part of NetworkExtension.framework. Instances of this class are thread safe.
    • Constructor Detail

      • NEAppProxyFlow

        protected NEAppProxyFlow​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • closeReadWithError

        public void closeReadWithError​(NSError error)
        closeReadWithError: This function is used by an NEProvider implementation to indicate that it does not want to receive any more data from the flow.
        Parameters:
        error - An error in NEAppProxyErrorDomain that should be passed to the flow's source application.
      • closeWriteWithError

        public void closeWriteWithError​(NSError error)
        closeWriteWithError: This functions is used by an NEProvider implementation to indicate that it does not have any more data to write to the flow.
        Parameters:
        error - An error in NEAppProxyErrorDomain that should be passed to the flow's source application.
      • metaData

        public NEFlowMetaData metaData()
        [@property] metaData An NEFlowMetaData object containing meta data for the flow.
      • openWithLocalEndpointCompletionHandler

        public void openWithLocalEndpointCompletionHandler​(NWHostEndpoint localEndpoint,
                                                           NEAppProxyFlow.Block_openWithLocalEndpointCompletionHandler completionHandler)
        openWithLocalEndpoint:completionHandler: This function is used by an NEProvider implementation to indicate that it is ready to handle flow data.
        Parameters:
        localEndpoint - The address and port that should be used as the local endpoint of the socket associated with this flow. If the source application already specifed a local endpoint by binding the socket then this parameter is ignored.
        completionHandler - A block that is called when the process of opening flow is complete. A nil value passed to this block indicates that the flow was opened successfully. A non-nil NSError value indicates that the flow failed to open successfully.
      • networkInterface

        public NSObject networkInterface()
        [@property] networkInterface An nw_interface_t containing information about the network interface used by the flow. If the flow's data is transported using a different interface, this property should be set to that interface.
      • setNetworkInterface

        public void setNetworkInterface​(NSObject value)
        [@property] networkInterface An nw_interface_t containing information about the network interface used by the flow. If the flow's data is transported using a different interface, this property should be set to that interface.
      • remoteHostname

        public java.lang.String remoteHostname()
        [@property] remoteHostname If the flow was created by passing a hostname to a "connect by name" API such as NSURLSession or Network.framework, this property is set to the remote hostname.