if chkHexReceive.Checked then begin strLength := length(ss); for i := 1 to strlength do begin byteTemp := byte((ss[i])); hexOffset := (inttohex(byteTemp, 2)); //肮奻珨曆硒俴眈肮腔髡夔˙ strTemp := strTemp + hexOffset + ' '; end; intcount := length(strtemp); hexint := 0; while intcount 0 do begin strFirst := leftstr(strtemp, 48); strtemp := rightstr(strtemp, intcount - 48); intcount := length(strtemp); hexOffset := inttohex(hexint, 4); mmRcv.Lines.Add('0x' + hexOffset + ': ' + trim(strFirst)); hexint := hexint + 16; end; end
2021-11-16 08:41:47 261KB UDP十六进制
1
以16进制传输数据。里面带有Demo看了你就明白了。
2019-12-21 20:18:59 224KB Udp数据传输
1