Add packet log
This commit is contained in:
parent
7914c4fc13
commit
2eb30b48ed
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue