package nanomsg.reqrep;

import nanomsg.RWSocket;
import nanomsg.Constants;


public class RepSocket extends RWSocket {
    public RepSocket(int domain) {
        super(domain, Constants.NN_REQ);
    }

    public RepSocket() {
        this(Constants.AF_SP);
    }
}

package nanomsg.reqrep;

import nanomsg.RWSocket;
import nanomsg.Constants;


public class RepSocket extends RWSocket {
    public RepSocket(int domain) {
        super(domain, Constants.NN_REP);
    }

    public RepSocket() {
        this(Constants.AF_SP);
    }
}

Fix wrong usage of some constans on RepSocket.