All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ngrok.NativeTcpListener Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package com.ngrok;

import java.io.IOException;

/**
 * An implementation of {@link Listener.Endpoint} that delegates implementation to a native library.
 */
public class NativeTcpListener extends AbstractEndpoint implements Listener.Endpoint {
    private long native_address;

    public NativeTcpListener(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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy