4 Replies
      Latest reply: Dec 26, 2016 1:28 PM by eskimo RSS
      wizzardj Level 1 Level 1 (0 points)

        After through this method

        [self.packetFlow readPacketsWithCompletionHandler:^(NSArray<NSData *> * _Nonnull packets, NSArray<NSNumber *> * _Nonnull protocols) {
          
        }];
        

        to get the data,I want to block some ip address,And then,how to send the data back to my iphone?I just block some thing,so i don't have to send them to a VPN server.

        After read the data,if I do nothing,The iphone will not be able to access the network.

        [self.packetFlow readPacketsWithCompletionHandler:^(NSArray<NSData *> * _Nonnull packets, NSArray<NSNumber *> * _Nonnull protocols) {
                 //do some block
                [self.packetFlow writePackets:packets withProtocols:protocols];
        
        }];
        

        And this is not work.