mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-18 19:31:02 +00:00
Add mg_hexdumpf: mg_hexdump that outputs to a file
PUBLISHED_FROM=f0fe58c9f01ef0c7b491ed0e5f51b983e4119507
This commit is contained in:
1 parent
6f6b12bee7
commit
fc113d64f5
4 files changed
+36
-5
No files matched your search
@@ -3938,6 +3938,9 @@ void mg_sock_addr_to_str(const union socket_address *sa, char *buf, size_t len,
|
||||
*/
|
||||
int mg_hexdump(const void *buf, int len, char *dst, int dst_len);
|
||||
|
||||
/* Same as mg_hexdump, but with output going to file instead of a buffer. */
|
||||
void mg_hexdumpf(FILE *fp, const void *buf, int len);
|
||||
|
||||
/*
|
||||
* Generates human-readable hexdump of the data sent or received by the
|
||||
* connection. `path` is a file name where hexdump should be written.
|
||||
|
||||
Reference in new issue
Block a user