May 2018
Beginner
230 pages
4h 49m
English
Before learning about the implementation of a network sniffer, let's learn about a particular struct method:
Let's discuss the code in the following code snippet:
import struct
ms= struct.pack('hhl', 1, 2, 3)
print (ms)
k= struct.unpack('hhl',ms)
print k
The output for the preceding code is as follows:
G:PythonNetworkingnetwork>python str1.py
☻ ♥
(1, 2, 3)
First, import ...
Read now
Unlock full access