int rc;
boolean more;
Msg msg;
byte[] target;
int size = identities.size();
PollItem items[] = new PollItem[2];
if (front_.getSocketOpt(ZMQ.ZMQ_TYPE) != ZMQ.ZMQ_ROUTER ||
backend_.getSocketOpt(ZMQ.ZMQ_TYPE) != ZMQ.ZMQ_ROUTER) {
throw new IllegalArgumentException("Both router socket is required");
}
items[0] = new PollItem(front_, ZMQ.ZMQ_POLLIN);
items[1] = new PollItem(backend_, ZMQ.ZMQ_POLLIN);
Selector selector;
try {
selector = Selector.open();
} catch (IOException e) {