diff options
author | 2022-05-12 21:10:35 -0600 | |
---|---|---|
committer | 2022-05-12 23:10:35 -0400 | |
commit | 5052eb307a959644677037be52b9a168a68775dd (patch) | |
tree | 9bd5a1a29e81d6cea632ea25449232d9bb62f50e /src/osd/modules/file/posixfile.cpp | |
parent | bdc0d0dea1f4113bca2ce5162dc044a026b43b58 (diff) |
bitbanger: Add udp multicast support (#9744)
Example usage: -bitb udp.234.99.99.99:15122
Diffstat (limited to 'src/osd/modules/file/posixfile.cpp')
-rw-r--r-- | src/osd/modules/file/posixfile.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/osd/modules/file/posixfile.cpp b/src/osd/modules/file/posixfile.cpp index 580288c7d10..69b7c60d4a0 100644 --- a/src/osd/modules/file/posixfile.cpp +++ b/src/osd/modules/file/posixfile.cpp @@ -226,7 +226,9 @@ std::error_condition osd_file::open(std::string const &path, std::uint32_t openf { std::string dst; if (posix_check_socket_path(path)) - return posix_open_socket(path, openflags, file, filesize); + return posix_open_tcp_socket(path, openflags, file, filesize); + else if (posix_check_udp_path(path)) + return posix_open_udp_socket(path, openflags, file, filesize); else if (posix_check_ptty_path(path)) return posix_open_ptty(openflags, file, filesize, dst); else if (posix_check_domain_path(path)) @@ -343,6 +345,16 @@ std::error_condition osd_file::openpty(ptr &file, std::string &name) noexcept //============================================================ +// osd_open_udp_socket +//============================================================ + +std::error_condition osd_file::open_udp_socket(std::string const &path, uint32_t openflags, ptr &file, std::uint64_t &filesize) noexcept +{ + return posix_open_udp_socket(path, openflags, file, filesize); +} + + +//============================================================ // osd_file::remove //============================================================ |