com.ngrok.NativeHttpListener Maven / Gradle / Ivy
The newest version!
package com.ngrok;
import java.io.IOException;
/**
* An implementation of {@link Listener.Endpoint} that delegates implementation to a native library.
*/
public class NativeHttpListener extends AbstractEndpoint implements Listener.Endpoint {
private long native_address;
public NativeHttpListener(String id, String metadata, String forwardsTo, String proto, String url) {
super(id, metadata, forwardsTo, proto, url);
}
@Override
public native NativeEndpointConnection accept() throws IOException;
@Override
public native void close() throws IOException;
}