0

I am trying to send multiple hex strings in a list from AF unix socket

from binascii import unhexlify   
message = [b'8501012a1b0ff5ff',b'8501012a1b000ff']
mess1 = unhexlify(message)
print(mess1)
Rajesh Pandya
  • 1,540
  • 4
  • 18
  • 31
srilalitha
  • 19
  • 1
  • What's the problem? – Yassine Faris May 02 '18 at 09:51
  • 1
    plz provide [mcve] – Aniket Bote May 02 '18 at 09:52
  • from binascii import unhexlify my_list_strings = ['850123ff','850123456'ff] my_hex = unhexlify(my_list_strings) print(my_hex).Here i am trying to make a list of strings what i have and i an converting to hex using unhexlify and trying to send these list of hex string from af unix socket to the server – srilalitha May 02 '18 at 09:55
  • im experiencing TypeError: argument should be bytes, buffer or ASCII string, not when converting list of strings to hex and sending through socket – srilalitha May 02 '18 at 10:01

0 Answers0