Add Socket::run().
authorCarl Hetherington <cth@carlh.net>
Thu, 13 Jun 2024 23:44:29 +0000 (01:44 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 23 Jun 2024 17:51:28 +0000 (19:51 +0200)
src/lib/dcpomatic_socket.cc
src/lib/dcpomatic_socket.h

index e86f2e2ae58bfb30bb958df42342954a42dd3e9a..a4cb03fa2ef24ca808f7ce3aeb063f5327fcaa48 100644 (file)
@@ -272,3 +272,9 @@ Socket::set_deadline_from_now(int seconds)
 {
        _deadline.expires_from_now(boost::posix_time::seconds(seconds));
 }
+
+void
+Socket::run()
+{
+       _io_service.run_one();
+}
index 79cf7efe2c586f340a8e21a5cae71da477925ba9..72f97fd98af077881f3f656c5af3d3a21461c7fb 100644 (file)
@@ -53,6 +53,8 @@ public:
        uint32_t read_uint32 ();
 
        void set_deadline_from_now(int seconds);
+       void run();
+
        class ReadDigestScope
        {
        public: