synchronized void accept() throws Exception { group.allocateResourcesRaw(this); while(connState < CONN_STATE_RESOURCES_ALLOCATED){ wait(); } if (connState != CONN_STATE_RESOURCES_ALLOCATED){ throw new IOException("resources allocation failed"); } RdmaConnParam connParam = getConnParam(); idPriv.accept(connParam); while(connState < CONN_STATE_CONNECTED){ wait(); } }
RdmaConnParam connParam = getConnParam(); idPriv.connect(connParam);