Add packet log

This commit is contained in:
Quentin Dufour 2019-02-19 19:44:15 +01:00
parent 7914c4fc13
commit 2eb30b48ed

View file

@ -171,6 +171,7 @@ void on_tcp_read(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
mv_buffer_wtor (app_ctx, fdinfo, bp);
return;
}
printf("Pass packet from %s to %s\n", fdinfo->url, url);
// 4. We move the buffer and notify the target
mv_buffer_rtow (app_ctx, fdinfo, to_fdinfo, bp);
@ -232,6 +233,7 @@ void on_udp_read(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
mv_buffer_wtor (app_ctx, fdinfo, bp);
return;
}
printf("Pass packet from %s to %s\n", fdinfo->url, url);
// 4. We move the buffer and notify the target
mv_buffer_rtow (app_ctx, fdinfo, to_fdinfo, bp);