mirror of
https://codeberg.org/WinDurango/WinDurango.git
synced 2026-04-18 02:23:34 -04:00
feat: added Windows.Xbox.Networking.idl
This commit is contained in:
261
idl/Windows.Xbox.Networking.idl
Normal file
261
idl/Windows.Xbox.Networking.idl
Normal file
@@ -0,0 +1,261 @@
|
||||
import "Windows.Xbox.System.idl";
|
||||
|
||||
namespace Windows.Xbox.Networking
|
||||
{
|
||||
[flags]
|
||||
enum CreateSecureDeviceAssociationBehavior
|
||||
{
|
||||
Default = 0,
|
||||
Reevaluate = 1,
|
||||
};
|
||||
|
||||
enum MultiplayerSessionRequirement
|
||||
{
|
||||
Required,
|
||||
Optional,
|
||||
None,
|
||||
};
|
||||
|
||||
enum NetworkAccessType
|
||||
{
|
||||
Open,
|
||||
Moderate,
|
||||
Strict,
|
||||
};
|
||||
|
||||
enum QualityOfServiceMeasurementStatus
|
||||
{
|
||||
Unknown,
|
||||
Success,
|
||||
PartialResults,
|
||||
HostUnreachable,
|
||||
MeasurementTimedOut,
|
||||
SecureConnectionAttemptTimedOut,
|
||||
SecureConnectionAttemptError,
|
||||
};
|
||||
|
||||
enum QualityOfServiceMetric
|
||||
{
|
||||
Invalid,
|
||||
PrivatePayload,
|
||||
LatencyAverage,
|
||||
LatencyMaximum,
|
||||
LatencyMinimum,
|
||||
BandwidthUp,
|
||||
BandwidthUpMaximum,
|
||||
BandwidthUpMinimum,
|
||||
BandwidthDown,
|
||||
BandwidthDownMaximum,
|
||||
BandwidthDownMinimum,
|
||||
};
|
||||
|
||||
enum SecureDeviceAssociationState
|
||||
{
|
||||
Invalid,
|
||||
CreatingOutbound,
|
||||
CreatingInbound,
|
||||
Ready,
|
||||
DestroyingLocal,
|
||||
DestroyingRemote,
|
||||
Destroyed,
|
||||
};
|
||||
|
||||
[flags]
|
||||
enum SecureDeviceAssociationUsage
|
||||
{
|
||||
Default = 0,
|
||||
InitiateFromMicrosoftConsole = 1,
|
||||
InitiateFromXboxLiveCompute = 2,
|
||||
InitiateFromOtherDevice = 4,
|
||||
InitiateFromWindowsDesktop = 8,
|
||||
AcceptOnMicrosoftConsole = 256,
|
||||
AcceptOnXboxLiveCompute = 512,
|
||||
AcceptOnOtherDevice = 1024,
|
||||
AcceptOnWindowsDesktop = 2048,
|
||||
};
|
||||
|
||||
[flags]
|
||||
enum SecureDeviceSocketUsage
|
||||
{
|
||||
Initiate = 1U,
|
||||
Accept = 2U,
|
||||
SendChat = 256U,
|
||||
SendGameData = 512U,
|
||||
SendDebug = 1024U,
|
||||
SendInsecure = 2048U,
|
||||
ReceiveChat = 65536U,
|
||||
ReceiveGameData = 131072U,
|
||||
ReceiveDebug = 262144U,
|
||||
ReceiveInsecure = 524288U,
|
||||
};
|
||||
|
||||
enum SecureIpProtocol
|
||||
{
|
||||
Udp = 1,
|
||||
Tcp = 2,
|
||||
};
|
||||
|
||||
struct ProtocolParserDescription
|
||||
{
|
||||
UInt64 NotYetImplemented;
|
||||
};
|
||||
|
||||
struct SecureDeviceId
|
||||
{
|
||||
UInt64 NotYetImplemented;
|
||||
};
|
||||
|
||||
[static_name("IErrorMessagesStatics", 0759380D-A6D3-443A-9441-E45EDC7677E6)]
|
||||
runtimeclass ErrorMessages
|
||||
{
|
||||
static String GetMessageForError(UInt32 errorCode);
|
||||
}
|
||||
|
||||
[interface_name("IMeasureQualityOfServiceResult", D7D51FB8-4E8E-4E11-B2A4-930F9C344A6A)]
|
||||
runtimeclass MeasureQualityOfServiceResult
|
||||
{
|
||||
Windows.Foundation.Collections.IVectorView<QualityOfServiceMeasurement> Measurements { get; };
|
||||
Windows.Foundation.Collections.IVectorView<QualityOfServiceMeasurement> GetMeasurementsForDevice(SecureDeviceAddress address);
|
||||
Windows.Foundation.Collections.IVectorView<QualityOfServiceMeasurement> GetMeasurementsForMetric(QualityOfServiceMetric metric);
|
||||
QualityOfServiceMeasurement GetMeasurement(SecureDeviceAddress address, QualityOfServiceMetric metric);
|
||||
}
|
||||
|
||||
[static_name("INetworkCacheStatics", BFFF4B75-05A4-49B0-9383-C29DF62A8DA2)]
|
||||
runtimeclass NetworkCache
|
||||
{
|
||||
static void SetNetworkCacheForUsers(Windows.Foundation.Collections.IVectorView<Windows.Xbox.System.User> pUsers);
|
||||
static void ClearNetworkCache();
|
||||
}
|
||||
|
||||
[interface_name("IQualityOfServiceMeasurement", 16FB373A-5239-4DA2-B43D-18E7A7BB1280)]
|
||||
runtimeclass QualityOfServiceMeasurement
|
||||
{
|
||||
QualityOfServiceMeasurementStatus Status { get; };
|
||||
QualityOfServiceMetric Metric { get; };
|
||||
Windows.Foundation.IPropertyValue MetricValue { get; };
|
||||
SecureDeviceAddress SecureDeviceAddress { get; };
|
||||
}
|
||||
|
||||
[static_name("IQualityOfServiceStatics", D7D51FB8-4E8E-4E11-B2A4-930F9C344A6A)]
|
||||
runtimeclass QualityOfService
|
||||
{
|
||||
static Windows.Foundation.IAsyncOperation<MeasureQualityOfServiceResult> MeasureQualityOfServiceAsync(Windows.Foundation.Collections.IIterable<SecureDeviceAddress> addresses,
|
||||
Windows.Foundation.Collections.IIterable<QualityOfServiceMetric> metrics,
|
||||
UInt32 timeoutInMilliseconds,
|
||||
UInt32 numberOfProbes);
|
||||
static void PublishPrivatePayload(UInt8[] payload);
|
||||
static void ClearPrivatePayload();
|
||||
static void ConfigureQualityOfService(UInt32 maxSimultaneousProbeConnections, Boolean constrainSystemBandwidthUp, Boolean constrainSystemBandwidthDown);
|
||||
}
|
||||
|
||||
[interface_name("ISecureDeviceAddress", FF75B1AA-B91F-4A06-9E28-349A8C600976)]
|
||||
[static_name("ISecureDeviceAddressStatics", 02ADDB0F-4880-4B1E-98B8-EE638AD89B55)]
|
||||
runtimeclass SecureDeviceAddress
|
||||
{
|
||||
static UInt32 CompareBuffers(Windows.Storage.Streams.IBuffer buffer1, Windows.Storage.Streams.IBuffer buffer2);
|
||||
static UInt32 CompareBytes(UInt8[] bytes1, UInt8[] bytes2);
|
||||
static SecureDeviceAddress FromBytes(UInt8[] bytes);
|
||||
static SecureDeviceAddress GetLocal();
|
||||
static SecureDeviceAddress CreateDedicatedServerAddress(String hostnameOrAddress);
|
||||
static SecureDeviceAddress FromBase64String(String base64String);
|
||||
event Windows.Foundation.TypedEventHandler<SecureDeviceAddress, Object> BufferChanged;
|
||||
Windows.Storage.Streams.IBuffer GetBuffer();
|
||||
Int32 Compare(SecureDeviceAddress secureDeviceAddress);
|
||||
String GetBase64String();
|
||||
Boolean IsLocal { get; };
|
||||
NetworkAccessType NetworkAccessType { get; };
|
||||
}
|
||||
|
||||
[interface_name("ISecureDeviceAddressFactory", 82FFDA7B-C014-4988-9DBD-6252AA85B87B)]
|
||||
runtimeclass SecureDeviceAddressFactory
|
||||
{
|
||||
SecureDeviceAddress CreateAddressFromBuffer(Windows.Storage.Streams.IBuffer buffer);
|
||||
}
|
||||
|
||||
[interface_name("ISecureDeviceAssociationIncomingEventArgs", 279E7254-408B-4636-8846-46B51C5A57DB)]
|
||||
runtimeclass SecureDeviceAssociationIncomingEventArgs
|
||||
{
|
||||
SecureDeviceAssociation Association { get; };
|
||||
}
|
||||
|
||||
[interface_name("ISecureDeviceAssociationStateChangedEventArgs", 3B56E8F9-B99F-47B9-9717-25C517347ADC)]
|
||||
runtimeclass SecureDeviceAssociationStateChangedEventArgs
|
||||
{
|
||||
SecureDeviceAssociationState OldState { get; };
|
||||
SecureDeviceAssociationState NewState { get; };
|
||||
}
|
||||
|
||||
[interface_name("ISecureDeviceAssociation", CCE4FE47-86FC-467C-A121-83061F4B0286)]
|
||||
[static_name("ISecureDeviceAssociationStatics", 15661441-F13A-46E4-8AC2-F474D59B1F0C)]
|
||||
runtimeclass SecureDeviceAssociation
|
||||
{
|
||||
static SecureDeviceAssociation GetAssociationBySocketAddressBytes(UInt8[] remoteSocketAddressBytes, UInt8[] localSocketAddressBytes);
|
||||
static SecureDeviceAssociation GetAssociationByHostNamesAndPorts(Windows.Networking.HostName remoteHostName, String remotePort, Windows.Networking.HostName localHostName, String localPort);
|
||||
event Windows.Foundation.TypedEventHandler<SecureDeviceAssociation, SecureDeviceAssociationStateChangedEventArgs> StateChanged;
|
||||
Windows.Foundation.IAsyncAction DestroyAsync();
|
||||
UInt8[] GetRemoteSocketAddressBytes();
|
||||
UInt8[] GetLocalSocketAddressBytes();
|
||||
SecureDeviceAssociationState State { get; };
|
||||
SecureDeviceAssociationTemplate Template { get; };
|
||||
SecureDeviceAddress RemoteSecureDeviceAddress { get; };
|
||||
Windows.Networking.HostName RemoteHostName { get; };
|
||||
String RemotePort { get; };
|
||||
Windows.Networking.HostName LocalHostName { get; };
|
||||
String LocalPort { get; };
|
||||
}
|
||||
|
||||
[interface_name("ISecureDeviceAssociationTemplate", 5479611E-35FA-4241-95BA-DF8E8338C739)]
|
||||
[static_name("ISecureDeviceAssociationTemplateStatics", 46745A18-697A-47E1-BB62-CC71DE0FDD8C)]
|
||||
runtimeclass SecureDeviceAssociationTemplate
|
||||
{
|
||||
static SecureDeviceAssociationTemplate GetTemplateByName(String name);
|
||||
static Windows.Foundation.Collections.IVectorView<SecureDeviceAssociationTemplate> Templates { get; };
|
||||
event Windows.Foundation.TypedEventHandler<SecureDeviceAssociationTemplate, SecureDeviceAssociationIncomingEventArgs> AssociationIncoming;
|
||||
Windows.Foundation.IAsyncOperation<SecureDeviceAssociation> CreateAssociationAsync(
|
||||
SecureDeviceAddress secureDeviceAddress,
|
||||
CreateSecureDeviceAssociationBehavior behavior);
|
||||
Windows.Foundation.IAsyncOperation<SecureDeviceAssociation> CreateAssociationForPortsAsync(
|
||||
SecureDeviceAddress secureDeviceAddress,
|
||||
CreateSecureDeviceAssociationBehavior behavior,
|
||||
String initiatorPort,
|
||||
String acceptorPort);
|
||||
Windows.Foundation.IAsyncOperation<Windows.Storage.Streams.IBuffer> CreateCertificateRequestAsync(String subjectName);
|
||||
Windows.Foundation.IAsyncAction InstallCertificateAsync(Windows.Storage.Streams.IBuffer certificateBuffer);
|
||||
String Name { get; };
|
||||
SecureDeviceSocketDescription InitiatorSocketDescription { get; };
|
||||
SecureDeviceSocketDescription AcceptorSocketDescription { get; };
|
||||
SecureDeviceAssociationUsage AllowedUsages { get; };
|
||||
String RelyingParty { get; };
|
||||
Windows.Foundation.Collections.IVectorView<ProtocolParserDescription> ProtocolParserDescriptions { get; };
|
||||
Windows.Foundation.Collections.IVectorView<QualityOfServiceMetric> QualityOfServiceMetricPathPriorities { get; };
|
||||
MultiplayerSessionRequirement MultiplayerSessionRequirement { get; };
|
||||
Windows.Foundation.Collections.IVectorView<SecureDeviceAssociation> Associations { get; };
|
||||
}
|
||||
|
||||
[interface_name("ISecureDeviceSocketDescription", 9835ED01-7B1E-41FC-B64D-7D20448892D6)]
|
||||
runtimeclass SecureDeviceSocketDescription
|
||||
{
|
||||
String Name { get; };
|
||||
SecureIpProtocol IpProtocol { get; };
|
||||
UInt16 BoundPortRangeLower { get; };
|
||||
UInt16 BoundPortRangeUpper { get; };
|
||||
SecureDeviceSocketUsage AllowedUsages { get; };
|
||||
}
|
||||
|
||||
[static_name("IDevelopmentStatics", AA9B7503-B9FC-4986-BC40-5B0477CD9BF7)]
|
||||
runtimeclass Development
|
||||
{
|
||||
static SecureDeviceAddress CreateSecureDeviceAddressFromHostNames(
|
||||
SecureDeviceId secureDeviceId,
|
||||
Windows.Foundation.Collections.IIterable<Windows.Networking.HostName> hostNames);
|
||||
static SecureDeviceSocketDescription CreateSecureDeviceSocketDescription(String name, SecureIpProtocol secureIpProtocol,
|
||||
UInt16 boundPortRangeLower, UInt16 boundPortRangeUpper, SecureDeviceSocketUsage allowedUsages);
|
||||
static SecureDeviceAssociationTemplate CreateSecureDeviceAssociationTemplate(String name,
|
||||
SecureDeviceSocketDescription initiatorSecureDeviceSocketDescription,
|
||||
SecureDeviceSocketDescription acceptorSecureDeviceSocketDescription,
|
||||
SecureDeviceAssociationUsage allowedUsages, String relyingParty,
|
||||
Windows.Foundation.Collections.IIterable<ProtocolParserDescription> protocolParserDescriptions,
|
||||
Windows.Foundation.Collections.IIterable<QualityOfServiceMetric> qualityOfServiceMetricPathPriorities,
|
||||
MultiplayerSessionRequirement multiplayerSessionRequirement);
|
||||
}
|
||||
}
|
||||
@@ -81,6 +81,13 @@ set(FILES
|
||||
"src/Windows/Xbox/Storage/Windows.Xbox.Storage.ConnectedStorageSpace.cpp"
|
||||
"src/Windows/Xbox/Storage/Windows.Xbox.Storage.ContainerInfoQueryResult.cpp"
|
||||
"src/Windows/Xbox/Services/Windows.Xbox.Services.XboxLiveConfiguration.cpp"
|
||||
"src/Windows/Xbox/Networking/Windows.Xbox.Networking.Development.cpp"
|
||||
"src/Windows/Xbox/Networking/Windows.Xbox.Networking.ErrorMessages.cpp"
|
||||
"src/Windows/Xbox/Networking/Windows.Xbox.Networking.NetworkCache.cpp"
|
||||
"src/Windows/Xbox/Networking/Windows.Xbox.Networking.QualityOfService.cpp"
|
||||
"src/Windows/Xbox/Networking/Windows.Xbox.Networking.SecureDeviceAddress.cpp"
|
||||
"src/Windows/Xbox/Networking/Windows.Xbox.Networking.SecureDeviceAssociation.cpp"
|
||||
"src/Windows/Xbox/Networking/Windows.Xbox.Networking.SecureDeviceAssociationTemplate.cpp"
|
||||
"src/WinDurangoWinRT.cpp"
|
||||
)
|
||||
|
||||
@@ -105,6 +112,7 @@ target_include_directories(WinDurango.WinRT PUBLIC
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include/WinDurango.WinRT/Windows/Xbox/Multiplayer"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include/WinDurango.WinRT/Windows/Xbox/Storage"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include/WinDurango.WinRT/Windows/Xbox/Services"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include/WinDurango.WinRT/Windows/Xbox/Networking"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/Generated Files"
|
||||
"${CMAKE_SOURCE_DIR}/projects/WinDurango.Common/include"
|
||||
)
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
#include "Windows.Xbox.Networking.SecureDeviceSocketDescription.g.h"
|
||||
#include "Windows.Xbox.Networking.Development.g.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
struct SecureDeviceSocketDescription : SecureDeviceSocketDescriptionT<SecureDeviceSocketDescription>
|
||||
{
|
||||
SecureDeviceSocketDescription() = default;
|
||||
|
||||
hstring Name();
|
||||
winrt::Windows::Xbox::Networking::SecureIpProtocol IpProtocol();
|
||||
uint16_t BoundPortRangeLower();
|
||||
uint16_t BoundPortRangeUpper();
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceSocketUsage AllowedUsages();
|
||||
};
|
||||
struct Development
|
||||
{
|
||||
Development() = default;
|
||||
|
||||
static winrt::Windows::Xbox::Networking::SecureDeviceAddress CreateSecureDeviceAddressFromHostNames(winrt::Windows::Xbox::Networking::SecureDeviceId const& secureDeviceId, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Networking::HostName> const& hostNames);
|
||||
static winrt::Windows::Xbox::Networking::SecureDeviceSocketDescription CreateSecureDeviceSocketDescription(hstring const& name, winrt::Windows::Xbox::Networking::SecureIpProtocol const& secureIpProtocol, uint16_t boundPortRangeLower, uint16_t boundPortRangeUpper, winrt::Windows::Xbox::Networking::SecureDeviceSocketUsage const& allowedUsages);
|
||||
static winrt::Windows::Xbox::Networking::SecureDeviceAssociationTemplate CreateSecureDeviceAssociationTemplate(hstring const& name, winrt::Windows::Xbox::Networking::SecureDeviceSocketDescription const& initiatorSecureDeviceSocketDescription, winrt::Windows::Xbox::Networking::SecureDeviceSocketDescription const& acceptorSecureDeviceSocketDescription, winrt::Windows::Xbox::Networking::SecureDeviceAssociationUsage const& allowedUsages, hstring const& relyingParty, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Xbox::Networking::ProtocolParserDescription> const& protocolParserDescriptions, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Xbox::Networking::QualityOfServiceMetric> const& qualityOfServiceMetricPathPriorities, winrt::Windows::Xbox::Networking::MultiplayerSessionRequirement const& multiplayerSessionRequirement);
|
||||
};
|
||||
}
|
||||
namespace winrt::Windows::Xbox::Networking::factory_implementation
|
||||
{
|
||||
struct Development : DevelopmentT<Development, implementation::Development>
|
||||
{
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
#include "Windows.Xbox.Networking.ErrorMessages.g.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
struct ErrorMessages
|
||||
{
|
||||
ErrorMessages() = default;
|
||||
|
||||
static hstring GetMessageForError(uint32_t errorCode);
|
||||
};
|
||||
}
|
||||
namespace winrt::Windows::Xbox::Networking::factory_implementation
|
||||
{
|
||||
struct ErrorMessages : ErrorMessagesT<ErrorMessages, implementation::ErrorMessages>
|
||||
{
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include "Windows.Xbox.Networking.NetworkCache.g.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
struct NetworkCache
|
||||
{
|
||||
NetworkCache() = default;
|
||||
|
||||
static void SetNetworkCacheForUsers(winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::System::User> const& pUsers);
|
||||
static void ClearNetworkCache();
|
||||
};
|
||||
}
|
||||
namespace winrt::Windows::Xbox::Networking::factory_implementation
|
||||
{
|
||||
struct NetworkCache : NetworkCacheT<NetworkCache, implementation::NetworkCache>
|
||||
{
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
#include "Windows.Xbox.Networking.QualityOfServiceMeasurement.g.h"
|
||||
#include "Windows.Xbox.Networking.MeasureQualityOfServiceResult.g.h"
|
||||
#include "Windows.Xbox.Networking.QualityOfService.g.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
struct QualityOfServiceMeasurement : QualityOfServiceMeasurementT<QualityOfServiceMeasurement>
|
||||
{
|
||||
QualityOfServiceMeasurement() = default;
|
||||
|
||||
winrt::Windows::Xbox::Networking::QualityOfServiceMeasurementStatus Status();
|
||||
winrt::Windows::Xbox::Networking::QualityOfServiceMetric Metric();
|
||||
winrt::Windows::Foundation::IPropertyValue MetricValue();
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAddress SecureDeviceAddress();
|
||||
};
|
||||
struct MeasureQualityOfServiceResult : MeasureQualityOfServiceResultT<MeasureQualityOfServiceResult>
|
||||
{
|
||||
MeasureQualityOfServiceResult() = default;
|
||||
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::QualityOfServiceMeasurement> Measurements();
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::QualityOfServiceMeasurement> GetMeasurementsForDevice(winrt::Windows::Xbox::Networking::SecureDeviceAddress const& address);
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::QualityOfServiceMeasurement> GetMeasurementsForMetric(winrt::Windows::Xbox::Networking::QualityOfServiceMetric const& metric);
|
||||
winrt::Windows::Xbox::Networking::QualityOfServiceMeasurement GetMeasurement(winrt::Windows::Xbox::Networking::SecureDeviceAddress const& address, winrt::Windows::Xbox::Networking::QualityOfServiceMetric const& metric);
|
||||
};
|
||||
struct QualityOfService
|
||||
{
|
||||
QualityOfService() = default;
|
||||
|
||||
static winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::Networking::MeasureQualityOfServiceResult> MeasureQualityOfServiceAsync(winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Xbox::Networking::SecureDeviceAddress> addresses, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Xbox::Networking::QualityOfServiceMetric> metrics, uint32_t timeoutInMilliseconds, uint32_t numberOfProbes);
|
||||
static void PublishPrivatePayload(array_view<uint8_t const> payload);
|
||||
static void ClearPrivatePayload();
|
||||
static void ConfigureQualityOfService(uint32_t maxSimultaneousProbeConnections, bool constrainSystemBandwidthUp, bool constrainSystemBandwidthDown);
|
||||
};
|
||||
}
|
||||
namespace winrt::Windows::Xbox::Networking::factory_implementation
|
||||
{
|
||||
struct QualityOfService : QualityOfServiceT<QualityOfService, implementation::QualityOfService>
|
||||
{
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
#include <winrt/Windows.Foundation.Collections.h>
|
||||
#include "Windows.Xbox.Networking.SecureDeviceAddressFactory.g.h"
|
||||
#include "Windows.Xbox.Networking.SecureDeviceAddress.g.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
struct SecureDeviceAddressFactory : SecureDeviceAddressFactoryT<SecureDeviceAddressFactory>
|
||||
{
|
||||
SecureDeviceAddressFactory() = default;
|
||||
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAddress CreateAddressFromBuffer(winrt::Windows::Storage::Streams::IBuffer const& buffer);
|
||||
};
|
||||
struct SecureDeviceAddress : SecureDeviceAddressT<SecureDeviceAddress>
|
||||
{
|
||||
SecureDeviceAddress() = default;
|
||||
|
||||
static uint32_t CompareBuffers(winrt::Windows::Storage::Streams::IBuffer const& buffer1, winrt::Windows::Storage::Streams::IBuffer const& buffer2);
|
||||
static uint32_t CompareBytes(array_view<uint8_t const> bytes1, array_view<uint8_t const> bytes2);
|
||||
static winrt::Windows::Xbox::Networking::SecureDeviceAddress FromBytes(array_view<uint8_t const> bytes);
|
||||
static winrt::Windows::Xbox::Networking::SecureDeviceAddress GetLocal();
|
||||
static winrt::Windows::Xbox::Networking::SecureDeviceAddress CreateDedicatedServerAddress(hstring const& hostnameOrAddress);
|
||||
static winrt::Windows::Xbox::Networking::SecureDeviceAddress FromBase64String(hstring const& base64String);
|
||||
winrt::event_token BufferChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Xbox::Networking::SecureDeviceAddress, winrt::Windows::Foundation::IInspectable> const& handler);
|
||||
void BufferChanged(winrt::event_token const& token) noexcept;
|
||||
winrt::Windows::Storage::Streams::IBuffer GetBuffer();
|
||||
int32_t Compare(winrt::Windows::Xbox::Networking::SecureDeviceAddress const& secureDeviceAddress);
|
||||
hstring GetBase64String();
|
||||
bool IsLocal();
|
||||
winrt::Windows::Xbox::Networking::NetworkAccessType NetworkAccessType();
|
||||
private:
|
||||
winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Xbox::Networking::SecureDeviceAddress, winrt::Windows::Foundation::IInspectable>> e_BufferChanged;
|
||||
};
|
||||
}
|
||||
namespace winrt::Windows::Xbox::Networking::factory_implementation
|
||||
{
|
||||
struct SecureDeviceAddress : SecureDeviceAddressT<SecureDeviceAddress, implementation::SecureDeviceAddress>
|
||||
{
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
#include <winrt/Windows.Foundation.Collections.h>
|
||||
#include "Windows.Xbox.Networking.SecureDeviceAssociation.g.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
struct SecureDeviceAssociation : SecureDeviceAssociationT<SecureDeviceAssociation>
|
||||
{
|
||||
SecureDeviceAssociation() = default;
|
||||
|
||||
static winrt::Windows::Xbox::Networking::SecureDeviceAssociation GetAssociationBySocketAddressBytes(array_view<uint8_t const> remoteSocketAddressBytes, array_view<uint8_t const> localSocketAddressBytes);
|
||||
static winrt::Windows::Xbox::Networking::SecureDeviceAssociation GetAssociationByHostNamesAndPorts(winrt::Windows::Networking::HostName const& remoteHostName, hstring const& remotePort, winrt::Windows::Networking::HostName const& localHostName, hstring const& localPort);
|
||||
winrt::event_token StateChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Xbox::Networking::SecureDeviceAssociation, winrt::Windows::Xbox::Networking::SecureDeviceAssociationStateChangedEventArgs> const& handler);
|
||||
void StateChanged(winrt::event_token const& token) noexcept;
|
||||
winrt::Windows::Foundation::IAsyncAction DestroyAsync();
|
||||
com_array<uint8_t> GetRemoteSocketAddressBytes();
|
||||
com_array<uint8_t> GetLocalSocketAddressBytes();
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationState State();
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationTemplate Template();
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAddress RemoteSecureDeviceAddress();
|
||||
winrt::Windows::Networking::HostName RemoteHostName();
|
||||
hstring RemotePort();
|
||||
winrt::Windows::Networking::HostName LocalHostName();
|
||||
hstring LocalPort();
|
||||
private:
|
||||
winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Xbox::Networking::SecureDeviceAssociation, winrt::Windows::Xbox::Networking::SecureDeviceAssociationStateChangedEventArgs>> e_StateChanged;
|
||||
};
|
||||
}
|
||||
namespace winrt::Windows::Xbox::Networking::factory_implementation
|
||||
{
|
||||
struct SecureDeviceAssociation : SecureDeviceAssociationT<SecureDeviceAssociation, implementation::SecureDeviceAssociation>
|
||||
{
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
#pragma once
|
||||
#include <winrt/Windows.Foundation.Collections.h>
|
||||
#include "Windows.Xbox.Networking.SecureDeviceAssociationIncomingEventArgs.g.h"
|
||||
#include "Windows.Xbox.Networking.SecureDeviceAssociationStateChangedEventArgs.g.h"
|
||||
#include "Windows.Xbox.Networking.SecureDeviceAssociationTemplate.g.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
struct SecureDeviceAssociationIncomingEventArgs : SecureDeviceAssociationIncomingEventArgsT<SecureDeviceAssociationIncomingEventArgs>
|
||||
{
|
||||
SecureDeviceAssociationIncomingEventArgs() = default;
|
||||
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociation Association();
|
||||
private:
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociation association;
|
||||
};
|
||||
struct SecureDeviceAssociationStateChangedEventArgs : SecureDeviceAssociationStateChangedEventArgsT<SecureDeviceAssociationStateChangedEventArgs>
|
||||
{
|
||||
SecureDeviceAssociationStateChangedEventArgs() = default;
|
||||
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationState OldState();
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationState NewState();
|
||||
private:
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociation oldState;
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociation newState;
|
||||
};
|
||||
struct SecureDeviceAssociationTemplate : SecureDeviceAssociationTemplateT<SecureDeviceAssociationTemplate>
|
||||
{
|
||||
SecureDeviceAssociationTemplate() = default;
|
||||
|
||||
static winrt::Windows::Xbox::Networking::SecureDeviceAssociationTemplate GetTemplateByName(hstring const& name);
|
||||
static winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::SecureDeviceAssociationTemplate> Templates();
|
||||
winrt::event_token AssociationIncoming(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Xbox::Networking::SecureDeviceAssociationTemplate, winrt::Windows::Xbox::Networking::SecureDeviceAssociationIncomingEventArgs> const& handler);
|
||||
void AssociationIncoming(winrt::event_token const& token) noexcept;
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::Networking::SecureDeviceAssociation> CreateAssociationAsync(winrt::Windows::Xbox::Networking::SecureDeviceAddress secureDeviceAddress, winrt::Windows::Xbox::Networking::CreateSecureDeviceAssociationBehavior behavior);
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::Networking::SecureDeviceAssociation> CreateAssociationForPortsAsync(winrt::Windows::Xbox::Networking::SecureDeviceAddress secureDeviceAddress, winrt::Windows::Xbox::Networking::CreateSecureDeviceAssociationBehavior behavior, hstring initiatorPort, hstring acceptorPort);
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Storage::Streams::IBuffer> CreateCertificateRequestAsync(hstring subjectName);
|
||||
winrt::Windows::Foundation::IAsyncAction InstallCertificateAsync(winrt::Windows::Storage::Streams::IBuffer certificateBuffer);
|
||||
hstring Name();
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceSocketDescription InitiatorSocketDescription();
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceSocketDescription AcceptorSocketDescription();
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationUsage AllowedUsages();
|
||||
hstring RelyingParty();
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::ProtocolParserDescription> ProtocolParserDescriptions();
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::QualityOfServiceMetric> QualityOfServiceMetricPathPriorities();
|
||||
winrt::Windows::Xbox::Networking::MultiplayerSessionRequirement MultiplayerSessionRequirement();
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::SecureDeviceAssociation> Associations();
|
||||
private:
|
||||
winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Xbox::Networking::SecureDeviceAssociationTemplate, winrt::Windows::Xbox::Networking::SecureDeviceAssociationIncomingEventArgs>> e_AssociationIncoming;
|
||||
};
|
||||
}
|
||||
namespace winrt::Windows::Xbox::Networking::factory_implementation
|
||||
{
|
||||
struct SecureDeviceAssociationTemplate : SecureDeviceAssociationTemplateT<SecureDeviceAssociationTemplate, implementation::SecureDeviceAssociationTemplate>
|
||||
{
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
#include "Windows.Xbox.Networking.Development.h"
|
||||
#include "WinDurangoWinRT.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
hstring SecureDeviceSocketDescription::Name()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: Name");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureIpProtocol SecureDeviceSocketDescription::IpProtocol()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: IpProtocol");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
uint16_t SecureDeviceSocketDescription::BoundPortRangeLower()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: BoundPortRangeLower");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
uint16_t SecureDeviceSocketDescription::BoundPortRangeUpper()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: BoundPortRangeUpper");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceSocketUsage SecureDeviceSocketDescription::AllowedUsages()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: AllowedUsages");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAddress Development::CreateSecureDeviceAddressFromHostNames(winrt::Windows::Xbox::Networking::SecureDeviceId const& secureDeviceId, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Networking::HostName> const& hostNames)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: CreateSecureDeviceAddressFromHostNames");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceSocketDescription Development::CreateSecureDeviceSocketDescription(hstring const& name, winrt::Windows::Xbox::Networking::SecureIpProtocol const& secureIpProtocol, uint16_t boundPortRangeLower, uint16_t boundPortRangeUpper, winrt::Windows::Xbox::Networking::SecureDeviceSocketUsage const& allowedUsages)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: CreateSecureDeviceSocketDescription");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationTemplate Development::CreateSecureDeviceAssociationTemplate(hstring const& name, winrt::Windows::Xbox::Networking::SecureDeviceSocketDescription const& initiatorSecureDeviceSocketDescription, winrt::Windows::Xbox::Networking::SecureDeviceSocketDescription const& acceptorSecureDeviceSocketDescription, winrt::Windows::Xbox::Networking::SecureDeviceAssociationUsage const& allowedUsages, hstring const& relyingParty, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Xbox::Networking::ProtocolParserDescription> const& protocolParserDescriptions, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Xbox::Networking::QualityOfServiceMetric> const& qualityOfServiceMetricPathPriorities, winrt::Windows::Xbox::Networking::MultiplayerSessionRequirement const& multiplayerSessionRequirement)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: CreateSecureDeviceAssociationTemplate");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
#include "Windows.Xbox.Networking.ErrorMessages.h"
|
||||
#include "WinDurangoWinRT.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
hstring ErrorMessages::GetMessageForError(uint32_t errorCode)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetMessageForError");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#include "Windows.Xbox.Networking.NetworkCache.h"
|
||||
#include "WinDurangoWinRT.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
void NetworkCache::SetNetworkCacheForUsers(winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::System::User> const& pUsers)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: SetNetworkCacheForUsers");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
void NetworkCache::ClearNetworkCache()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: ClearNetworkCache");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
#include "Windows.Xbox.Networking.QualityOfService.h"
|
||||
#include "WinDurangoWinRT.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::QualityOfServiceMeasurement> MeasureQualityOfServiceResult::Measurements()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: Measurements");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::QualityOfServiceMeasurement> MeasureQualityOfServiceResult::GetMeasurementsForDevice(winrt::Windows::Xbox::Networking::SecureDeviceAddress const& address)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetMeasurementsForDevice");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::QualityOfServiceMeasurement> MeasureQualityOfServiceResult::GetMeasurementsForMetric(winrt::Windows::Xbox::Networking::QualityOfServiceMetric const& metric)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetMeasurementsForMetric");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::QualityOfServiceMeasurement MeasureQualityOfServiceResult::GetMeasurement(winrt::Windows::Xbox::Networking::SecureDeviceAddress const& address, winrt::Windows::Xbox::Networking::QualityOfServiceMetric const& metric)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetMeasurement");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::QualityOfServiceMeasurementStatus QualityOfServiceMeasurement::Status()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: Status");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::QualityOfServiceMetric QualityOfServiceMeasurement::Metric()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: Metric");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Foundation::IPropertyValue QualityOfServiceMeasurement::MetricValue()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: MetricValue");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAddress QualityOfServiceMeasurement::SecureDeviceAddress()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: SecureDeviceAddress");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::Networking::MeasureQualityOfServiceResult> QualityOfService::MeasureQualityOfServiceAsync(winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Xbox::Networking::SecureDeviceAddress> addresses, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Xbox::Networking::QualityOfServiceMetric> metrics, uint32_t timeoutInMilliseconds, uint32_t numberOfProbes)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: MeasureQualityOfServiceAsync");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
void QualityOfService::PublishPrivatePayload(array_view<uint8_t const> payload)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: PublishPrivatePayload");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
void QualityOfService::ClearPrivatePayload()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: ClearPrivatePayload");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
void QualityOfService::ConfigureQualityOfService(uint32_t maxSimultaneousProbeConnections, bool constrainSystemBandwidthUp, bool constrainSystemBandwidthDown)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: ConfigureQualityOfService");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
#include "Windows.Xbox.Networking.SecureDeviceAddress.h"
|
||||
#include "WinDurangoWinRT.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAddress SecureDeviceAddressFactory::CreateAddressFromBuffer(winrt::Windows::Storage::Streams::IBuffer const& buffer)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: CreateAddressFromBuffer");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
uint32_t SecureDeviceAddress::CompareBuffers(winrt::Windows::Storage::Streams::IBuffer const& buffer1, winrt::Windows::Storage::Streams::IBuffer const& buffer2)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: CompareBuffers");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
uint32_t SecureDeviceAddress::CompareBytes(array_view<uint8_t const> bytes1, array_view<uint8_t const> bytes2)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: CompareBytes");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAddress SecureDeviceAddress::FromBytes(array_view<uint8_t const> bytes)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: FromBytes");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAddress SecureDeviceAddress::GetLocal()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetLocal");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAddress SecureDeviceAddress::CreateDedicatedServerAddress(hstring const& hostnameOrAddress)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: CreateDedicatedServerAddress");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAddress SecureDeviceAddress::FromBase64String(hstring const& base64String)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: FromBase64String");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::event_token SecureDeviceAddress::BufferChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Xbox::Networking::SecureDeviceAddress, winrt::Windows::Foundation::IInspectable> const& handler)
|
||||
{
|
||||
return e_BufferChanged.add(handler);
|
||||
}
|
||||
void SecureDeviceAddress::BufferChanged(winrt::event_token const& token) noexcept
|
||||
{
|
||||
e_BufferChanged.remove(token);
|
||||
}
|
||||
winrt::Windows::Storage::Streams::IBuffer SecureDeviceAddress::GetBuffer()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetBuffer");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
int32_t SecureDeviceAddress::Compare(winrt::Windows::Xbox::Networking::SecureDeviceAddress const& secureDeviceAddress)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: Compare");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
hstring SecureDeviceAddress::GetBase64String()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetBase64String");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
bool SecureDeviceAddress::IsLocal()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: IsLocal");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::NetworkAccessType SecureDeviceAddress::NetworkAccessType()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: NetworkAccessType");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
#include "Windows.Xbox.Networking.SecureDeviceAssociation.h"
|
||||
#include "WinDurangoWinRT.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociation SecureDeviceAssociation::GetAssociationBySocketAddressBytes(array_view<uint8_t const> remoteSocketAddressBytes, array_view<uint8_t const> localSocketAddressBytes)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetAssociationBySocketAddressBytes");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociation SecureDeviceAssociation::GetAssociationByHostNamesAndPorts(winrt::Windows::Networking::HostName const& remoteHostName, hstring const& remotePort, winrt::Windows::Networking::HostName const& localHostName, hstring const& localPort)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetAssociationByHostNamesAndPorts");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::event_token SecureDeviceAssociation::StateChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Xbox::Networking::SecureDeviceAssociation, winrt::Windows::Xbox::Networking::SecureDeviceAssociationStateChangedEventArgs> const& handler)
|
||||
{
|
||||
return e_StateChanged.add(handler);
|
||||
}
|
||||
void SecureDeviceAssociation::StateChanged(winrt::event_token const& token) noexcept
|
||||
{
|
||||
e_StateChanged.remove(token);
|
||||
}
|
||||
winrt::Windows::Foundation::IAsyncAction SecureDeviceAssociation::DestroyAsync()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: DestroyAsync");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
com_array<uint8_t> SecureDeviceAssociation::GetRemoteSocketAddressBytes()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetRemoteSocketAddressBytes");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
com_array<uint8_t> SecureDeviceAssociation::GetLocalSocketAddressBytes()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetLocalSocketAddressBytes");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationState SecureDeviceAssociation::State()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: State");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationTemplate SecureDeviceAssociation::Template()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: Template");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAddress SecureDeviceAssociation::RemoteSecureDeviceAddress()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: RemoteSecureDeviceAddress");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Networking::HostName SecureDeviceAssociation::RemoteHostName()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: RemoteHostName");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
hstring SecureDeviceAssociation::RemotePort()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: RemotePort");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Networking::HostName SecureDeviceAssociation::LocalHostName()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: LocalHostName");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
hstring SecureDeviceAssociation::LocalPort()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: LocalPort");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
#include "Windows.Xbox.Networking.SecureDeviceAssociationTemplate.h"
|
||||
#include "WinDurangoWinRT.h"
|
||||
|
||||
namespace winrt::Windows::Xbox::Networking::implementation
|
||||
{
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociation SecureDeviceAssociationIncomingEventArgs::Association()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: Association");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationState SecureDeviceAssociationStateChangedEventArgs::OldState()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: OldState");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationState SecureDeviceAssociationStateChangedEventArgs::NewState()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: NewState");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationTemplate SecureDeviceAssociationTemplate::GetTemplateByName(hstring const& name)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: GetTemplateByName");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::SecureDeviceAssociationTemplate> SecureDeviceAssociationTemplate::Templates()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: Templates");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::event_token SecureDeviceAssociationTemplate::AssociationIncoming(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Xbox::Networking::SecureDeviceAssociationTemplate, winrt::Windows::Xbox::Networking::SecureDeviceAssociationIncomingEventArgs> const& handler)
|
||||
{
|
||||
return e_AssociationIncoming.add(handler);
|
||||
}
|
||||
void SecureDeviceAssociationTemplate::AssociationIncoming(winrt::event_token const& token) noexcept
|
||||
{
|
||||
e_AssociationIncoming.remove(token);
|
||||
}
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::Networking::SecureDeviceAssociation> SecureDeviceAssociationTemplate::CreateAssociationAsync(winrt::Windows::Xbox::Networking::SecureDeviceAddress secureDeviceAddress, winrt::Windows::Xbox::Networking::CreateSecureDeviceAssociationBehavior behavior)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: CreateAssociationAsync");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Xbox::Networking::SecureDeviceAssociation> SecureDeviceAssociationTemplate::CreateAssociationForPortsAsync(winrt::Windows::Xbox::Networking::SecureDeviceAddress secureDeviceAddress, winrt::Windows::Xbox::Networking::CreateSecureDeviceAssociationBehavior behavior, hstring initiatorPort, hstring acceptorPort)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: CreateAssociationForPortsAsync");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Storage::Streams::IBuffer> SecureDeviceAssociationTemplate::CreateCertificateRequestAsync(hstring subjectName)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: CreateCertificateRequestAsync");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Foundation::IAsyncAction SecureDeviceAssociationTemplate::InstallCertificateAsync(winrt::Windows::Storage::Streams::IBuffer certificateBuffer)
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: InstallCertificateAsync");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
hstring SecureDeviceAssociationTemplate::Name()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: Name");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceSocketDescription SecureDeviceAssociationTemplate::InitiatorSocketDescription()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: InitiatorSocketDescription");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceSocketDescription SecureDeviceAssociationTemplate::AcceptorSocketDescription()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: AcceptorSocketDescription");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::SecureDeviceAssociationUsage SecureDeviceAssociationTemplate::AllowedUsages()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: AllowedUsages");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
hstring SecureDeviceAssociationTemplate::RelyingParty()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: RelyingParty");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::ProtocolParserDescription> SecureDeviceAssociationTemplate::ProtocolParserDescriptions()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: ProtocolParserDescriptions");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::QualityOfServiceMetric> SecureDeviceAssociationTemplate::QualityOfServiceMetricPathPriorities()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: QualityOfServiceMetricPathPriorities");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Xbox::Networking::MultiplayerSessionRequirement SecureDeviceAssociationTemplate::MultiplayerSessionRequirement()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: MultiplayerSessionRequirement");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Networking::SecureDeviceAssociation> SecureDeviceAssociationTemplate::Associations()
|
||||
{
|
||||
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Networking", "Unimplemented: Associations");
|
||||
throw hresult_not_implemented();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user