ssh.ssh_bind_callbacks_struct Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sshapi-libssh Show documentation
Show all versions of sshapi-libssh Show documentation
libssh is a C library that enables you to write a program that uses the SSH protocol. With it, you can remotely execute programs, transfer files, or use a secure and transparent tunnel for your remote programs. The SSH protocol is encrypted, ensures data integrity, and provides strong means of authenticating both the server of the client. The library hides a lot of technical details from the SSH protocol, but this does not mean that you should not try to know about and understand these details.
This is the SSHAPI provider bridge for libssh, and uses JNA.
Downloads and more information about libssh may be found at http://api.libssh.org/master/index.html.
This library is deployed to SSHTools own Maven repository.
The newest version!
package ssh;
import com.ochafik.lang.jnaerator.runtime.NativeSize;
import com.ochafik.lang.jnaerator.runtime.Structure;
import ssh.SshLibrary.ssh_bind_incoming_connection_callback;
/**
* @brief These are the callbacks exported by the ssh_bind structure.
* * They are called by the server module when events appear on the network.
* native declaration : /usr/include/libssh/server.h:69
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public class ssh_bind_callbacks_struct extends Structure {
/// DON'T SET THIS use ssh_callbacks_init() instead.
public NativeSize size;
/**
* A new connection is available.
* C type : ssh_bind_incoming_connection_callback
*/
public ssh_bind_incoming_connection_callback incoming_connection;
public ssh_bind_callbacks_struct() {
super();
initFieldOrder();
}
protected void initFieldOrder() {
setFieldOrder(new java.lang.String[]{"size", "incoming_connection"});
}
/**
* @param size DON'T SET THIS use ssh_callbacks_init() instead.
* @param incoming_connection A new connection is available.
* C type : ssh_bind_incoming_connection_callback
*/
public ssh_bind_callbacks_struct(NativeSize size, ssh_bind_incoming_connection_callback incoming_connection) {
super();
this.size = size;
this.incoming_connection = incoming_connection;
initFieldOrder();
}
protected ByReference newByReference() { return new ByReference(); }
protected ByValue newByValue() { return new ByValue(); }
protected ssh_bind_callbacks_struct newInstance() { return new ssh_bind_callbacks_struct(); }
public static ssh_bind_callbacks_struct[] newArray(int arrayLength) {
return Structure.newArray(ssh_bind_callbacks_struct.class, arrayLength);
}
public static class ByReference extends ssh_bind_callbacks_struct implements Structure.ByReference {
};
public static class ByValue extends ssh_bind_callbacks_struct implements Structure.ByValue {
};
}