+
+#if wxUSE_SOCKETS
+ // handle any pending socket events:
+ wxSocketEventDispatcher::Get().RunLoop();
+#endif
+}
+
+void wxEventLoop::Yield()
+{
+ // process all pending events:
+ while ( Pending() )
+ Dispatch();
+
+ // handle timers, sockets etc.
+ OnNextIteration();