diff options
| author | yangwei <[email protected]> | 2023-08-30 00:36:15 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-08-30 00:36:15 +0800 |
| commit | a3e32acfe8a96ce517dcd1f361b4d10b795d1a5e (patch) | |
| tree | 9e2292ff875181e90cdc169c53abc8a64ac6c7e6 /examples | |
| parent | 460967d296f8bf175d076f9a9498b0fd1f6ea419 (diff) | |
✨ feat(session addr): support session_get0_addr
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/sapp_plugin/simple_loader.c | 6 | ||||
| -rw-r--r-- | examples/sapp_plugin/simple_loader.inf | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/examples/sapp_plugin/simple_loader.c b/examples/sapp_plugin/simple_loader.c index f8c6c77..f5eab17 100644 --- a/examples/sapp_plugin/simple_loader.c +++ b/examples/sapp_plugin/simple_loader.c @@ -86,3 +86,9 @@ char simple_loader_tcpall_stream_entry(struct streaminfo *pstream,void **pme, in loader_transfer_stream_entry(pstream, pstream->pktstate, pme, thread_seq, a_packet); return APP_STATE_GIVEME; } + +char simple_loader_tcp_stream_entry(struct streaminfo *pstream,void **pme, int thread_seq,void *a_packet) +{ + loader_transfer_stream_entry(pstream, pstream->opstate, pme, thread_seq, a_packet); + return APP_STATE_GIVEME; +} diff --git a/examples/sapp_plugin/simple_loader.inf b/examples/sapp_plugin/simple_loader.inf index d490fd4..76f027a 100644 --- a/examples/sapp_plugin/simple_loader.inf +++ b/examples/sapp_plugin/simple_loader.inf @@ -8,6 +8,10 @@ DESTROY_FUNC=SIMPLE_LOADER_EXIT FUNC_FLAG=ALL FUNC_NAME=simple_loader_tcpall_stream_entry +#[TCP] +#FUNC_FLAG=ALL +#FUNC_NAME=simple_loader_tcp_stream_entry + [UDP] FUNC_FLAG=ALL FUNC_NAME=simple_loader_udp_stream_entry
\ No newline at end of file |
