From b35d8a2299251cd53f3715eac11e2f5848740f50 Mon Sep 17 00:00:00 2001 From: shogo4405 Date: Sat, 26 Oct 2024 02:00:26 +0900 Subject: [PATCH] implementaion for moqt draft7 --- Examples/macOS/Base.lproj/Main.storyboard | 26 +- .../macOS/FLVAnalyzerViewController.swift | 2 + Examples/macOS/MoxygenChatClient.swift | 32 +++ HaishinKit.xcodeproj/project.pbxproj | 42 ++++ MoQTHaishinKit/MoQTHaishinKit.h | 3 + MoQTHaishinKit/README.md | 30 +++ MoQTHaishinKit/Sources/Constants.swift | 3 + .../Sources/Extension/Data+Extension.swift | 13 + ...xpressibleByIntegerLiteral+Extension.swift | 24 ++ .../NWProtocolQUIC.Options+Extension.swift | 12 + MoQTHaishinKit/Sources/MoQTConnection.swift | 226 ++++++++++++++++++ .../MoQTDataStream/MoQTDataStream.swift | 9 + .../Sources/MoQTDataStream/MoQTObject.swift | 33 +++ .../MoQTStreamHeaderSubgroup.swift | 35 +++ .../Sources/MoQTMessage/MoQTAnnounce.swift | 77 ++++++ .../Sources/MoQTMessage/MoQTClientSetup.swift | 33 +++ .../Sources/MoQTMessage/MoQTMessage.swift | 75 ++++++ .../Sources/MoQTMessage/MoQTServerSetup.swift | 27 +++ .../Sources/MoQTMessage/MoQTSubscribe.swift | 137 +++++++++++ .../MoQTMessage/MoQTSubscribeAnnounces.swift | 69 ++++++ MoQTHaishinKit/Sources/MoQTPayload.swift | 133 +++++++++++ .../Sources/MoQTSetupParameter.swift | 68 ++++++ MoQTHaishinKit/Sources/MoQTSocket.swift | 212 ++++++++++++++++ MoQTHaishinKit/Sources/MoQTVersion.swift | 12 + .../MoQTVersionSpecificParameter.swift | 60 +++++ MoQTHaishinKit/Tests/MoQTPayLoadTests.swift | 14 ++ .../Tests/MoQTStreamHeaderSubgroupTests.swift | 19 ++ Package.swift | 9 +- README.md | 5 +- 29 files changed, 1423 insertions(+), 17 deletions(-) create mode 100644 Examples/macOS/MoxygenChatClient.swift create mode 100644 MoQTHaishinKit/MoQTHaishinKit.h create mode 100644 MoQTHaishinKit/README.md create mode 100644 MoQTHaishinKit/Sources/Constants.swift create mode 100644 MoQTHaishinKit/Sources/Extension/Data+Extension.swift create mode 100644 MoQTHaishinKit/Sources/Extension/ExpressibleByIntegerLiteral+Extension.swift create mode 100644 MoQTHaishinKit/Sources/Extension/NWProtocolQUIC.Options+Extension.swift create mode 100644 MoQTHaishinKit/Sources/MoQTConnection.swift create mode 100644 MoQTHaishinKit/Sources/MoQTDataStream/MoQTDataStream.swift create mode 100644 MoQTHaishinKit/Sources/MoQTDataStream/MoQTObject.swift create mode 100644 MoQTHaishinKit/Sources/MoQTDataStream/MoQTStreamHeaderSubgroup.swift create mode 100644 MoQTHaishinKit/Sources/MoQTMessage/MoQTAnnounce.swift create mode 100644 MoQTHaishinKit/Sources/MoQTMessage/MoQTClientSetup.swift create mode 100644 MoQTHaishinKit/Sources/MoQTMessage/MoQTMessage.swift create mode 100644 MoQTHaishinKit/Sources/MoQTMessage/MoQTServerSetup.swift create mode 100644 MoQTHaishinKit/Sources/MoQTMessage/MoQTSubscribe.swift create mode 100644 MoQTHaishinKit/Sources/MoQTMessage/MoQTSubscribeAnnounces.swift create mode 100644 MoQTHaishinKit/Sources/MoQTPayload.swift create mode 100644 MoQTHaishinKit/Sources/MoQTSetupParameter.swift create mode 100644 MoQTHaishinKit/Sources/MoQTSocket.swift create mode 100644 MoQTHaishinKit/Sources/MoQTVersion.swift create mode 100644 MoQTHaishinKit/Sources/MoQTVersionSpecificParameter.swift create mode 100644 MoQTHaishinKit/Tests/MoQTPayLoadTests.swift create mode 100644 MoQTHaishinKit/Tests/MoQTStreamHeaderSubgroupTests.swift diff --git a/Examples/macOS/Base.lproj/Main.storyboard b/Examples/macOS/Base.lproj/Main.storyboard index 65bf3d53f..641dafe72 100644 --- a/Examples/macOS/Base.lproj/Main.storyboard +++ b/Examples/macOS/Base.lproj/Main.storyboard @@ -1,8 +1,8 @@ - + - + @@ -79,7 +79,7 @@ - + @@ -204,13 +204,13 @@ - + - + - + @@ -232,7 +232,7 @@ - + @@ -261,7 +261,7 @@