summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/osdfile.h
diff options
context:
space:
mode:
author tedgreen99 <tedgreen99@users.noreply.github.com>2022-05-12 21:10:35 -0600
committer GitHub <noreply@github.com>2022-05-12 23:10:35 -0400
commit5052eb307a959644677037be52b9a168a68775dd (patch)
tree9bd5a1a29e81d6cea632ea25449232d9bb62f50e /src/osd/osdfile.h
parentbdc0d0dea1f4113bca2ce5162dc044a026b43b58 (diff)
bitbanger: Add udp multicast support (#9744)
Example usage: -bitb udp.234.99.99.99:15122
Diffstat (limited to 'src/osd/osdfile.h')
-rw-r--r--src/osd/osdfile.h13
1 files changed, 13 insertions, 0 deletions
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() { }