File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -2226,6 +2226,12 @@ typedef struct NX_TCP_LISTEN_STRUCT
2226
2226
NX_PACKET * nx_tcp_listen_queue_head ,
2227
2227
* nx_tcp_listen_queue_tail ;
2228
2228
2229
+ #ifndef NX_DISABLE_EXTENDED_NOTIFY_SUPPORT
2230
+ /* Define the callback function for notifying the host application of
2231
+ a new connect request in the listen queue. */
2232
+ VOID (* nx_tcp_listen_queue_notify )(struct NX_TCP_LISTEN_STRUCT * listen_ptr );
2233
+ #endif
2234
+
2229
2235
/* Define the link between other TCP listen structures created by the application. */
2230
2236
struct NX_TCP_LISTEN_STRUCT
2231
2237
* nx_tcp_listen_next ,
Original file line number Diff line number Diff line change @@ -108,6 +108,9 @@ NX_TCP_SOCKET *socket_ptr;
108
108
NX_TCP_HEADER * tcp_header_ptr ;
109
109
struct NX_TCP_LISTEN_STRUCT * listen_ptr ;
110
110
VOID (* listen_callback )(NX_TCP_SOCKET * socket_ptr , UINT port );
111
+ #ifndef NX_DISABLE_EXTENDED_NOTIFY_SUPPORT
112
+ VOID (* queue_callback )(struct NX_TCP_LISTEN_STRUCT * listen_ptr );
113
+ #endif
111
114
ULONG option_words ;
112
115
ULONG mss = 0 ;
113
116
ULONG checksum ;
@@ -1011,6 +1014,17 @@ ULONG rwin_scale = 0xFF;
1011
1014
/* Release the packet. */
1012
1015
_nx_packet_release (packet_ptr );
1013
1016
}
1017
+
1018
+ #ifndef NX_DISABLE_EXTENDED_NOTIFY_SUPPORT
1019
+ /* If extended notify is enabled, call the listen_queue_notify function.
1020
+ This user-supplied function notifies the host application of
1021
+ a new connect request in the listen queue. */
1022
+ queue_callback = listen_ptr -> nx_tcp_listen_queue_notify ;
1023
+ if (queue_callback )
1024
+ {
1025
+ (queue_callback )(listen_ptr );
1026
+ }
1027
+ #endif
1014
1028
}
1015
1029
1016
1030
/* Finished processing, just return. */
You can’t perform that action at this time.
0 commit comments