5455565758596061626364
// Body ByteBuffer buf = new ByteBuffer(1024, true); numberCapabilities = 0; writeCapabilities(buf); buf.trimAtCursor(); // Header ByteBuffer header = createMCSHeader(buf); // Length of source descriptor, including NULL character (LE)
7576777879808182838485
header.writeShortLE(numberCapabilities); // Padding 2 bytes header.writeShortLE(0); header.trimAtCursor(); // Prepend header to capabilities buf.prepend(header); // Trim buffer to actual length of data written
190191192193194195196197198199200
(byte)0x32, (byte)0x00, }); /* @formatter:on */ // Trim buffer to actual length of data written buf.trimAtCursor(); pushDataToPad(STDOUT, buf); } }
247248249250251252253254255256257
(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, }); /* @formatter:on */ // Trim buffer to actual length of data written buf.trimAtCursor(); pushDataToPad(STDOUT, buf); } private void sendControlPDUActionCooperate() {
301302303304305306307308309310311
// controlId: 0 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, }); /* @formatter:on */ buf.trimAtCursor(); pushDataToPad(STDOUT, buf); } private void sendSynchronizePDU() {
353354355356357358359360361362363
(byte)0x01, (byte)0x00, // targetUser: 0x03ea (byte)0xea, (byte)0x03, }); /* @formatter:on */ buf.trimAtCursor(); pushDataToPad(STDOUT, buf); } private void writeCapabilities(ByteBuffer buf) { writeGeneralCS(buf);
616617618619620621622623624625626
//// SupportFIPS: (...........................0....) Not Support FIPS Compliant //// Reserved2: (000000000000000000000000000.....) // }); /* @formatter:on */ buf.trimAtCursor(); pushDataToOTOut(buf); switchOff(); }
4344454647484950515253
data.writeByte(0x4); // Length of full packet, including length field, in network order. // Topmost bit of first byte indicates that field has 2 bytes data.writeShort((1 + 2 + buf.length) | 0x8000); data.trimAtCursor(); buf.prepend(data); pushDataToAllOuts(buf); }
90919293949596979899100
(byte)0xea, (byte)0x03, }); /* @formatter:on */ // Trim buffer to actual length of data written buf.trimAtCursor(); pushDataToOTOut(buf); switchOff(); }
238239240241242243244245246247248
// cbAutoReconnectCookie: 0 bytes (LE) buf.writeShortLE(0); // Trim buffer to actual length of data written buf.trimAtCursor(); pushDataToOTOut(buf); switchOff(); }