Tag:Big end

  • CSAPP English Learning Series: Chapter 11: network programming

    Time:2021-6-3

    A series of articles: CSAPP English Learning Series: Preface Chapter 1: a tour of computer systems CSAPP English Learning Series: Chapter 2: data representation Chapter 8: exceptional control flow CSAPP English Learning Series: Chapter 11: network programming CSAPP English Learning Series: Chapter 12: concurrent programming Network applications rely on many of the concepts that you […]

  • Analysis of Python protocol

    Time:2020-11-25

    1. Use the byte method to parse and package the protocol bin_buff = bytes() bin_buff += (0x1234).to_bytes(2, byteorder = ‘big’) bin_buff += (0x56).to_bytes(1, byteorder = ‘big’) print(‘0x%s’ % bin_ buff.hex ()) ා output 0x123456 b1 = int.from_bytes(bin_buff[1:3], byteorder = ‘big’) Print (‘0x% X ‘% B1) ා output 0x3456 2. If you press struct in C, […]