亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pdu.java

?? snmp4j
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    try {      return SnmpConstants.SNMP_ERROR_MESSAGES[errorStatus.getValue()];    }    catch (ArrayIndexOutOfBoundsException iobex) {      return "Unknown error: "+errorStatus.getValue();    }  }  /**   * Sets the error index.   * @param errorIndex   *    an integer value >= 0 where 1 denotes the first variable binding.   */  public void setErrorIndex(int errorIndex) {    this.errorIndex.setValue(errorIndex);  }  /**   * Gets the error index.   * @return   *   an integer value >= 0 where 1 denotes the first variable binding.   */  public int getErrorIndex() {    return errorIndex.getValue();  }  /**   * Checks whether this PDU is a confirmed class PDU.   * @return boolean   */  public boolean isConfirmedPdu() {    return ((type != PDU.REPORT) && (type != PDU.RESPONSE) &&            (type != PDU.TRAP) && (type != PDU.V1TRAP));  }  public int getBERLength() {    // header for data_pdu    int length = getBERPayloadLengthPDU();    length += BER.getBERLengthOfLength(length) + 1;    // assume maxmimum length here    return length;  }  public int getBERPayloadLength() {    return getBERPayloadLengthPDU();  }  public void decodeBER(BERInputStream inputStream) throws IOException {    BER.MutableByte pduType = new BER.MutableByte();    int length = BER.decodeHeader(inputStream, pduType);    int pduStartPos = (int)inputStream.getPosition();    switch (pduType.getValue()) {      case PDU.SET:      case PDU.GET:      case PDU.GETNEXT:      case PDU.GETBULK:      case PDU.INFORM:      case PDU.REPORT:      case PDU.TRAP:      case PDU.RESPONSE:        break;      default:        throw new IOException("Unsupported PDU type: "+pduType.getValue());    }    this.type = pduType.getValue();    requestID.decodeBER(inputStream);    errorStatus.decodeBER(inputStream);    errorIndex.decodeBER(inputStream);    pduType = new BER.MutableByte();    int vbLength = BER.decodeHeader(inputStream, pduType);    if (pduType.getValue() != BER.SEQUENCE) {      throw new IOException("Encountered invalid tag, SEQUENCE expected: "+                            pduType.getValue());    }    // rest read count    int startPos = (int)inputStream.getPosition();    variableBindings = new Vector();    while (inputStream.getPosition() - startPos < vbLength) {      VariableBinding vb = new VariableBinding();      vb.decodeBER(inputStream);      variableBindings.add(vb);    }    if (inputStream.getPosition() - startPos != vbLength) {      throw new IOException("Length of VB sequence ("+vbLength+                            ") does not match real length: "+                            ((int)inputStream.getPosition()-startPos));    }    if (BER.isCheckSequenceLength()) {      BER.checkSequenceLength(length,                              (int) inputStream.getPosition() - pduStartPos,                              this);    }  }  protected int getBERPayloadLengthPDU() {    int length = 0;    // length for all vbs    for (int i = 0; i < variableBindings.size(); i++) {      length += ((VariableBinding)variableBindings.get(i)).getBERLength();    }    length += BER.getBERLengthOfLength(length) + 1;    // req id, error status, error index    Integer32 i32 =        new Integer32((requestID.getValue() > 0) ? requestID.getValue() : 0xFFFFFFFF);    length += i32.getBERLength();    i32 = errorStatus;    length += i32.getBERLength();    i32 = errorIndex;    length += i32.getBERLength();    i32 = null;    return length;  }  public void encodeBER(OutputStream outputStream) throws IOException {    BER.encodeHeader(outputStream, type, getBERPayloadLengthPDU());    requestID.encodeBER(outputStream);    errorStatus.encodeBER(outputStream);    errorIndex.encodeBER(outputStream);    int vbLength = 0;    for (int i=0; i<variableBindings.size(); i++) {      vbLength += ((VariableBinding)variableBindings.get(i)).getBERLength();    }    BER.encodeHeader(outputStream, BER.SEQUENCE, vbLength);    for (int i=0; i<variableBindings.size(); i++) {      ((VariableBinding)variableBindings.get(i)).encodeBER(outputStream);    }  }  /**   * Removes all variable bindings from the PDU. This can be used to reuse   * a PDU for another request.   */  public void clear() {    variableBindings.clear();    setRequestID(new Integer32(0));  }  /**   * Sets the PDU type.   * @param type   *    the type of the PDU (e.g. GETNEXT, SET, etc.)   */  public void setType(int type) {    this.type = type;  }  /**   * Gets the PDU type. The default is {@link PDU#GETNEXT}.   * @return   *    the PDU's type.   */  public int getType() {    return type;  }  public Object clone() {    return new PDU(this);  }  /**   * Gets the request ID associated with this PDU.   * @return   *    an <code>Integer32</code> instance.   */  public Integer32 getRequestID() {    return requestID;  }  /**   * Sets the request ID for this PDU. When the request ID is not set or set to   * zero, the message processing model will generate a unique request ID for   * the <code>PDU</code> when sent.   * @param requestID   *    a unique request ID.   */  public void setRequestID(Integer32 requestID) {    this.requestID = requestID;  }  /**   * Gets a string representation of the supplied PDU type.   * @param type   *    a PDU type.   * @return   *    a string representation of <code>type</code>, for example "GET".   */  public static String getTypeString(int type) {    switch (type) {      case PDU.GET:        return "GET";      case PDU.SET:        return "SET";      case PDU.GETNEXT:        return "GETNEXT";      case PDU.GETBULK:        return "GETBULK";      case PDU.INFORM:        return "INFORM";      case PDU.RESPONSE:        return "RESPONSE";      case PDU.REPORT:        return "REPORT";      case PDU.TRAP:        return "TRAP";      case PDU.V1TRAP:        return "V1TRAP";    }    return "unknown";  }  /**   * Gets the PDU type identifier for a string representation of the type.   * @param type   *    the string representation of a PDU type: <code>GET, GETNEXT, GETBULK,   *    SET, INFORM, RESPONSE, REPORT, TRAP, V1TRAP)</code>.   * @return   *    the corresponding PDU type constant, or <code>Integer.MIN_VALUE</code>   *    of the supplied type is unknown.   */  public static int getTypeFromString(String type) {    if (type.equals("GET")) {      return PDU.GET;    }    else if (type.equals("SET")) {      return PDU.SET;    }    else if (type.equals("GETNEXT")) {      return PDU.GETNEXT;    }    else if (type.equals("GETBULK")) {      return PDU.GETBULK;    }    else if (type.equals("INFORM")) {      return PDU.INFORM;    }    else if (type.equals("RESPONSE")) {      return PDU.RESPONSE;    }    else if (type.equals("TRAP")) {      return PDU.TRAP;    }    else if (type.equals("V1TRAP")) {      return PDU.V1TRAP;    }    else if (type.equals("REPORT")) {      return PDU.REPORT;    }    return Integer.MIN_VALUE;  }  /**   * Returns a string representation of the object.   *   * @return a string representation of the object.   */  public String toString() {    StringBuffer buf = new StringBuffer();    buf.append(getTypeString(type));    buf.append("[reqestID=");    buf.append(requestID);    buf.append(", errorStatus=");    buf.append(getErrorStatusText()+"("+errorStatus+")");    buf.append(", errorIndex=");    buf.append(errorIndex);    buf.append(", VBS[");    for (int i=0; i<variableBindings.size(); i++) {      buf.append(variableBindings.get(i));      if (i+1 < variableBindings.size()) {        buf.append("; ");      }    }    buf.append("]]");    return buf.toString();  }  /**   * Gets the maximum repetitions of repeatable variable bindings in GETBULK   * requests.   * @return   *    an integer value >= 0.   */  public int getMaxRepetitions() {    return errorIndex.getValue();  }  /**   * Sets the maximum repetitions of repeatable variable bindings in GETBULK   * requests.   * @param maxRepetitions   *    an integer value >= 0.   */  public void setMaxRepetitions(int maxRepetitions) {    this.errorIndex.setValue(maxRepetitions);  }  /**   * Gets the number of non repeater variable bindings in a GETBULK PDU.   * @return   *    an integer value >= 0 and <= {@link #size()}   */  public int getNonRepeaters() {    return errorStatus.getValue();  }  /**   * Sets the number of non repeater variable bindings in a GETBULK PDU.   * @param nonRepeaters   *    an integer value >= 0 and <= {@link #size()}   */  public void setNonRepeaters(int nonRepeaters) {    this.errorStatus.setValue(nonRepeaters);  }  /**   * Returns an array with the variable bindings of this PDU.   * @return   *    an array of <code>VariableBinding</code> instances of this PDU in the   *    same order as in the PDU.   */  public VariableBinding[] toArray() {    VariableBinding[] vbs = new VariableBinding[this.variableBindings.size()];    this.variableBindings.toArray(vbs);    return vbs;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲主播在线观看| 久久精品欧美日韩| 天天色图综合网| 欧美一二三在线| 国产在线精品免费av| 久久综合999| 成人性色生活片| 亚洲免费资源在线播放| 91福利国产精品| 蓝色福利精品导航| 欧美国产一区二区| 欧美视频自拍偷拍| 日本成人在线网站| 中文字幕久久午夜不卡| 91美女片黄在线观看| 午夜欧美在线一二页| 欧美精品一区二区三区蜜桃视频| 懂色av一区二区三区免费观看| 亚洲色图视频网| 884aa四虎影成人精品一区| 久久99久久久欧美国产| 国产精品久久久久一区二区三区 | 欧美午夜免费电影| 欧美精品一区二区久久久| 福利一区在线观看| 亚洲资源在线观看| 精品福利av导航| 色中色一区二区| 久久99精品一区二区三区三区| 国产精品九色蝌蚪自拍| 日韩一级免费观看| 91影视在线播放| 久久精品国产99| 亚洲中国最大av网站| 久久久综合视频| 欧美天天综合网| 丁香六月综合激情| 视频一区二区三区在线| 中文字幕在线视频一区| 日韩一区二区视频在线观看| 91女人视频在线观看| 久久电影网站中文字幕 | 久久久久国产精品免费免费搜索| 成人av在线电影| 秋霞电影一区二区| 一区二区三区四区不卡视频| 国产婷婷色一区二区三区四区| 欧美日韩大陆一区二区| www.爱久久.com| 韩国三级中文字幕hd久久精品| 一区二区三区国产豹纹内裤在线| 中文字幕巨乱亚洲| 久久美女艺术照精彩视频福利播放| 欧美性猛交一区二区三区精品| 顶级嫩模精品视频在线看| 毛片av一区二区三区| 亚洲成人精品影院| 亚洲同性gay激情无套| 国产亚洲成aⅴ人片在线观看| 欧美大胆人体bbbb| 欧美一区二区三区白人| 欧美麻豆精品久久久久久| 欧洲日韩一区二区三区| 成人av资源在线| 成人福利电影精品一区二区在线观看| 久99久精品视频免费观看| 日产国产高清一区二区三区| 亚洲综合视频在线| 亚洲一区二区三区美女| 一区二区三区精品| 伊人一区二区三区| 亚洲精品网站在线观看| 樱花草国产18久久久久| 亚洲日本护士毛茸茸| 亚洲同性gay激情无套| 国产精品美女视频| 亚洲视频一二三| 亚洲欧美另类小说| 亚洲一区二区黄色| 日日夜夜免费精品视频| 日韩激情在线观看| 日本不卡视频一二三区| 青青草97国产精品免费观看| 麻豆精品精品国产自在97香蕉 | 日本一区二区三区视频视频| 欧美刺激午夜性久久久久久久| 欧美另类z0zxhd电影| 欧美精品在线观看播放| 欧美一区二区三区喷汁尤物| 欧美不卡一二三| 国产亚洲人成网站| 自拍偷自拍亚洲精品播放| 一区二区三区精品视频| 日韩av中文字幕一区二区三区| 青青草国产精品97视觉盛宴| 国产一区久久久| 成人午夜av影视| 91免费视频网| 日韩欧美另类在线| 国产日韩欧美高清| 一区二区久久久| 免费观看成人av| 成人在线视频一区| 欧美网站一区二区| 2022国产精品视频| 综合网在线视频| 日本特黄久久久高潮| 国产成人av一区二区| 色拍拍在线精品视频8848| 日韩一级片网址| 国产三级一区二区三区| 亚洲综合久久久| 精品一区二区三区av| 91美女在线看| 日韩欧美激情在线| 综合久久国产九一剧情麻豆| 日本不卡高清视频| 96av麻豆蜜桃一区二区| 欧美一区二区三区影视| 1区2区3区欧美| 琪琪一区二区三区| 色狠狠一区二区| 久久无码av三级| 亚洲国产aⅴ成人精品无吗| 国产精品18久久久久久久久 | 国产一区二区三区香蕉| 91网站黄www| 日韩精品一区二区三区三区免费| 亚洲婷婷综合色高清在线| 激情综合五月天| 精品视频在线看| 国产精品素人视频| 久久99久久久久| 在线观看亚洲一区| 中文在线一区二区| 美女视频黄免费的久久| 欧美视频在线一区二区三区| 中文字幕电影一区| 久久精品国产99国产| 在线观看国产91| 亚洲欧洲日韩一区二区三区| 狠狠狠色丁香婷婷综合久久五月| 欧美三级电影在线观看| 日韩伦理免费电影| 国产69精品久久99不卡| 欧美成人综合网站| 五月婷婷激情综合| 欧美性大战久久久| 亚洲素人一区二区| 丁香五精品蜜臀久久久久99网站 | 国产在线精品一区二区| 欧美私模裸体表演在线观看| **欧美大码日韩| 国产成人av电影在线| 精品av久久707| 强制捆绑调教一区二区| 6080yy午夜一二三区久久| 亚洲最色的网站| 色婷婷狠狠综合| 最近日韩中文字幕| 99久久免费精品高清特色大片| 国产午夜精品一区二区三区嫩草 | 欧美视频一二三区| 亚洲日本乱码在线观看| va亚洲va日韩不卡在线观看| 国产亚洲精品bt天堂精选| 国产一区二区三区电影在线观看| 精品免费视频.| 久久精品理论片| 精品国精品国产| 国产一区二区伦理片| 久久精品夜色噜噜亚洲aⅴ| 国产综合色产在线精品| 久久精品视频在线免费观看| 国产乱子伦一区二区三区国色天香| 欧美精品一区视频| 丁香网亚洲国际| 欧美激情一二三区| 99久久久无码国产精品| 夜夜嗨av一区二区三区中文字幕| 日本韩国欧美国产| 亚洲国产色一区| 日韩精品中午字幕| 国产高清精品网站| 综合在线观看色| 欧美日韩成人一区二区| 蜜桃精品在线观看| 久久精品欧美一区二区三区不卡| 成人av在线资源网站| 亚洲综合色在线| 欧美一区二区私人影院日本| 国产一区在线观看麻豆| 国产精品每日更新| 欧美伊人久久大香线蕉综合69| 日韩电影在线观看网站| 国产亚洲1区2区3区| 色拍拍在线精品视频8848| 日韩av中文字幕一区二区三区| 精品国产一区二区三区久久影院| 成人avav影音|