| | |
| | | ByteUtil.hex2Bytes(para.commandCode, bsHead, index) ; |
| | | |
| | | index = 0 ; |
| | | byte[] bs = new byte[13] ; |
| | | String[] ipPorts = cvo.ip.split(".") ; |
| | | ByteUtilUnsigned.short2Bytes_LE(bs, (byte) Integer.parseInt(ipPorts[0]), index++); |
| | | ByteUtilUnsigned.short2Bytes_LE(bs, (byte) Integer.parseInt(ipPorts[1]), index++); |
| | | ByteUtilUnsigned.short2Bytes_LE(bs, (byte) Integer.parseInt(ipPorts[2]), index++); |
| | | ByteUtilUnsigned.short2Bytes_LE(bs, (byte) Integer.parseInt(ipPorts[3]), index++); |
| | | byte[] bs = new byte[14] ; |
| | | String[] ip = cvo.ip.split("\\.") ; |
| | | ByteUtilUnsigned.byte2Byte(bs, (byte) Integer.parseInt(ip[0]), index++); |
| | | ByteUtilUnsigned.byte2Byte(bs, (byte) Integer.parseInt(ip[1]), index++); |
| | | ByteUtilUnsigned.byte2Byte(bs, (byte) Integer.parseInt(ip[2]), index++); |
| | | ByteUtilUnsigned.byte2Byte(bs, (byte) Integer.parseInt(ip[3]), index++); |
| | | ByteUtilUnsigned.short2Bytes_LE(bs, cvo.port, index); |
| | | index += 2 ; |
| | | GlCreate.createPw(bs, index); |