MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3 / EventReceiver

Interface EventReceiver

javacli/OpenVPNClientThread.java:40–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 public interface EventReceiver {
41 // Called with events from core
42 void event(ClientAPI_Event event);
43
44 // Called with log text from core
45 void log(ClientAPI_LogInfo loginfo);
46
47 // Called when connect() thread exits
48 void done(ClientAPI_Status status);
49
50 // Called to "protect" a socket from being routed through the tunnel
51 boolean socket_protect(int socket);
52
53 // When a connection is close to timeout, the core will call this
54 // method. If it returns false, the core will disconnect with a
55 // CONNECTION_TIMEOUT event. If true, the core will enter a PAUSE
56 // state.
57 boolean pause_on_connection_timeout();
58
59 // Callback to construct a new tun builder
60 TunBuilder tun_builder_new();
61
62 // Callback to get a certificate
63 void external_pki_cert_request(ClientAPI_ExternalPKICertRequest req);
64
65 // Callback to sign data
66 void external_pki_sign_request(ClientAPI_ExternalPKISignRequest req);
67 }
68
69 public interface TunBuilder {
70 // Tun builder methods.

Callers 20

eventMethod · 0.95
add_eventMethod · 0.65
data_decryptMethod · 0.65
finalizeMethod · 0.65
control_recvMethod · 0.65
logMethod · 0.95
call_doneMethod · 0.95
socket_protectMethod · 0.95
socket_protectMethod · 0.65
start_connect_Method · 0.65
start_connect_Method · 0.65
start_connect_Method · 0.65

Implementers 1

Clientjavacli/Client.java

Calls

no outgoing calls

Tested by

no test coverage detected