]> git.seodisparate.com - UDPConnection/commitdiff
Update documentation about UDPC_update(ctx)
authorStephen Seo <seo.disparate@gmail.com>
Thu, 8 Dec 2022 07:54:02 +0000 (16:54 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 8 Dec 2022 07:54:02 +0000 (16:54 +0900)
src/UDPC.h

index c921c90e6df18eb40b2513cf40b3e6cd87a75e38..06b995f1945a44cbc99afc63c523b7e614cb17eb 100644 (file)
@@ -431,12 +431,9 @@ UDPC_EXPORT void UDPC_destroy(UDPC_HContext ctx);
  * If auto updating was enabled for the context, then there is no need to call
  * this function.
  *
- * Note that the context can only receive at most one packet per call to update
- * (due to the fact that UDPC created its UDP socket to not block on receive
- * checks). This is why it is expected to either call this function several
- * times a second (such as in a game's update loop), or have auto-updating
- * enabled via UDPC_init_threaded_update(), UDPC_init_threaded_update_ms(),
- * UDPC_enable_threaded_update(), or UDPC_enable_threaded_update_ms().
+ * Previously, update would only receive one packet per call to update. Now,
+ * each individual call to update will process all packets that have been
+ * received but haven't been processed yet.
  */
 UDPC_EXPORT void UDPC_update(UDPC_HContext ctx);