From 5052eb307a959644677037be52b9a168a68775dd Mon Sep 17 00:00:00 2001 From: tedgreen99 Date: Thu, 12 May 2022 21:10:35 -0600 Subject: bitbanger: Add udp multicast support (#9744) Example usage: -bitb udp.234.99.99.99:15122 --- src/osd/osdfile.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/osd/osdfile.h') diff --git a/src/osd/osdfile.h b/src/osd/osdfile.h index bc3efbde805..2c984c0e3a9 100644 --- a/src/osd/osdfile.h +++ b/src/osd/osdfile.h @@ -102,6 +102,19 @@ public: /// \return Result of the operation. static std::error_condition openpty(ptr &file, std::string &name) noexcept; + /// \brief Create a UDP socket + /// + /// \param [in] path Address of the socket to open. + /// \param [in] openflags Combination of #OPEN_FLAG_READ, + /// #OPEN_FLAG_WRITE specifying the requested access mode + /// and open behaviour. + /// \param [out] file Receives the file handle if the operation + /// succeeds. Not valid if the operation fails. + /// \param [out] filesize Will be zero if the operation succeeded. + /// Not valid if the operation failed. + /// \return Result of the operation. + static std::error_condition open_udp_socket(std::string const &path, std::uint32_t openflags, osd_file::ptr &file, std::uint64_t &filesize) noexcept; + /// \brief Close an open file virtual ~osd_file() { } -- cgit v1.2.3-70-g09d2