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

com.github.unidbg.unix.struct.SockAddr Maven / Gradle / Ivy

There is a newer version: 0.9.8
Show newest version
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