com.github.unidbg.unix.struct.SockAddr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unidbg Show documentation
Show all versions of unidbg Show documentation
Allows you to emulate an Android ARM32 and/or ARM64 native library
package com.github.unidbg.unix.struct;
import com.github.unidbg.pointer.UnicornStructure;
import com.sun.jna.Pointer;
import java.util.Arrays;
import java.util.List;
public class SockAddr extends UnicornStructure {
public SockAddr(Pointer p) {
super(p);
}
public short sin_family;
public short sin_port;
public byte[] sin_addr = new byte[24];
@Override
protected List getFieldOrder() {
return Arrays.asList("sin_family", "sin_port", "sin_addr");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy