Commit 8a3c9f0
extmod/modlwip: Call user callback on newly-received UDP or RAW packet.
User callbacks allow code to respond to incoming messages without blocking
or polling. User callbacks are optional, and if no callback is registered
the code has no effect.
The mechanism is the same as for TCP: when a connection is accepted or a
TCP packet is received, a user callback is executed.
Fixes issue micropython#3594.
Signed-off-by: Jack Whitham <jack.d.whitham@gmail.com>1 parent 406356e commit 8a3c9f0
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| 466 | + | |
| 467 | + | |
466 | 468 | | |
467 | 469 | | |
468 | 470 | | |
| |||
0 commit comments