mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-04 16:08:31 +00:00
24 lines
529 B
Java
24 lines
529 B
Java
import java.io.*;
|
|
|
|
public class uwsgi {
|
|
|
|
public class RequestBody extends InputStream {
|
|
public native int read();
|
|
public native int read(byte[] b);
|
|
public native int available();
|
|
}
|
|
|
|
public interface SignalHandler {
|
|
void function(int signum);
|
|
}
|
|
|
|
public interface RpcFunction {
|
|
String function(String... args);
|
|
}
|
|
|
|
public static native int worker_id();
|
|
public static native void register_signal(int signum, String target, SignalHandler sh);
|
|
public static native void register_rpc(String name, RpcFunction rf);
|
|
|
|
}
|