You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/include/lokinet-extension.hpp

22 lines
619 B
C++

#pragma once
#include <Foundation/Foundation.h>
#include <NetworkExtension/NetworkExtension.h>
struct ContextWrapper;
@interface LLARPPacketTunnel : NEPacketTunnelProvider
{
struct ContextWrapper* m_Context;
}
- (void)startTunnelWithOptions:(NSDictionary<NSString*, NSObject*>*)options
completionHandler:(void (^)(NSError* error))completionHandler;
- (void)stopTunnelWithReason:(NEProviderStopReason)reason
completionHandler:(void (^)(void))completionHandler;
- (void)handleAppMessage:(NSData*)messageData
completionHandler:(void (^)(NSData* responseData))completionHandler;
@end