diff options
author | Troy Giorshev <troygiorshev@gmail.com> | 2020-07-13 13:20:47 -0400 |
---|---|---|
committer | Troy Giorshev <troygiorshev@gmail.com> | 2021-01-23 15:58:42 -0500 |
commit | f2a77ff97bec09dd5fcc043d8659d8ec5dfb87c2 (patch) | |
tree | fb44b69ac67e2183242dfd743aab011e611adb37 /share/genbuild.sh | |
parent | dbf779d5deb04f55c6e8493ce4e12ed4628638f3 (diff) |
Add CaptureMessage
This commit adds the CaptureMessage function. This will later be called
when any message is sent or received. The capture directory is fixed,
in a new folder "message_capture" in the datadir. Peers will then have
their own subfolders, named with their IP address and port, replacing
colons with underscores to keep compatibility with Windows. Inside,
received and sent messages will be captured into two binary files,
msgs_recv.dat and msgs_sent.dat.
e.g.
message_capture/203.0.113.7_56072/msgs_recv.dat
message_capture/203.0.113.7_56072/msgs_sent.dat
The format has been designed as to result in a minimal performance
impact. A parsing script is added in a later commit.
Diffstat (limited to 'share/genbuild.sh')
0 files changed, 0 insertions, 0 deletions