/** * * @param msgid * @param data * @param sendTimeout * @param rcvTimeout * @param replyMode * @return * @throws NSErrorException */ public CFData sendRequest(int msgid, CFData data, double sendTimeout, double rcvTimeout, String replyMode) throws NSErrorException { CFData.CFDataPtr ptr = new CFData.CFDataPtr(); CFMessagePortErrorCode err = sendRequest(msgid, data, sendTimeout, rcvTimeout, replyMode, ptr); if (err != CFMessagePortErrorCode.Success) { CFMessagePortError error = new CFMessagePortError(err); throw new NSErrorException(error); } return ptr.get(); } /*<methods>*/
public CFMessagePortErrorCode getErrorCode() { CFMessagePortErrorCode code = null; try { code = CFMessagePortErrorCode.valueOf(getCode()); } catch (IllegalArgumentException e) { // ignore } return code; } }
public CFMessagePortErrorCode getErrorCode() { CFMessagePortErrorCode code = null; try { code = CFMessagePortErrorCode.valueOf(getCode()); } catch (IllegalArgumentException e) { // ignore } return code; } }
/** * * @param msgid * @param data * @param sendTimeout * @param rcvTimeout * @param replyMode * @return * @throws NSErrorException */ public CFData sendRequest(int msgid, CFData data, double sendTimeout, double rcvTimeout, String replyMode) throws NSErrorException { CFData.CFDataPtr ptr = new CFData.CFDataPtr(); CFMessagePortErrorCode err = sendRequest(msgid, data, sendTimeout, rcvTimeout, replyMode, ptr); if (err != CFMessagePortErrorCode.Success) { CFMessagePortError error = new CFMessagePortError(err); throw new NSErrorException(error); } return ptr.get(); } /*<methods>*/
public CFMessagePortErrorCode getErrorCode() { CFMessagePortErrorCode code = null; try { code = CFMessagePortErrorCode.valueOf(getCode()); } catch (IllegalArgumentException e) { // ignore } return code; } }
/** * * @param msgid * @param data * @param sendTimeout * @param rcvTimeout * @param replyMode * @return * @throws NSErrorException */ public CFData sendRequest(int msgid, CFData data, double sendTimeout, double rcvTimeout, String replyMode) throws NSErrorException { CFData.CFDataPtr ptr = new CFData.CFDataPtr(); CFMessagePortErrorCode err = sendRequest(msgid, data, sendTimeout, rcvTimeout, replyMode, ptr); if (err != CFMessagePortErrorCode.Success) { CFMessagePortError error = new CFMessagePortError(err); throw new NSErrorException(error); } return ptr.get(); } /*<methods>*/