| 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. |
no outgoing calls
no test coverage detected