<mx:SecureDeviceAssociationUsage> Element

A SecureDeviceAssociationUsage flag to enable.

Syntax

<mx:SecureDeviceAssociationUsage
  Type = string />  

Attributes

Type
The name of the SecureDeviceAssociationUsage enum value to enable. Must be unique among all SecureDeviceAssociationUsage nodes for this SecureDeviceAssociationTemplate. Allowed values are:

Value Meaning
DefaultThis is equivalent to specifying all of the other usages.
InitiateFromMicrosoftConsoleThis association may be initiated from a console.
InitiateFromXboxLiveComputeThis association may be initiated from Xbox Live Compute.
InitiateFromOtherDeviceThis association may be initiated from another device, such as a third-party server.
AcceptOnMicrosoftConsoleThis association may accept connections on a console.
AcceptOnXboxLiveComputeThis association may accept connections in Xbox Live Compute.
AcceptOnOtherDeviceThis association may accept connections on another device, such as a third-party server.

Element information

Parent elements mx:AllowedUsages

Example

<mx:Extension Category="windows.xbox.networking">
  <mx:XboxNetworkingManifest>
    <mx:SocketDescriptions>
      <mx:SocketDescription Name="MultiplayerSocketUdp" SecureIpProtocol="Udp" BoundPort="8700">
        <mx:AllowedUsages>
          <mx:SecureDeviceSocketUsage Type="Initiate" />
          <!-- connection will send initial packet -->
          <mx:SecureDeviceSocketUsage Type="Accept" />
          <!-- connection will accept packets -->
          <mx:SecureDeviceSocketUsage Type="SendGameData" />
          <!-- connection will send game data packets (UDP) -->
          <mx:SecureDeviceSocketUsage Type="ReceiveGameData" />
          <!-- connection will receive game data packets (UDP) -->
        </mx:AllowedUsages>
      </mx:SocketDescription>
    </mx:SocketDescriptions>
    <mx:SecureDeviceAssociationTemplates>
      <mx:SecureDeviceAssociationTemplate Name="MultiplayerUdp" InitiatorSocketDescription="MultiplayerSocketUdp" AcceptorSocketDescription="MultiplayerSocketUdp" MultiplayerSessionRequirement="Required">
        <mx:AllowedUsages>
          <mx:SecureDeviceAssociationUsage Type="InitiateFromMicrosoftConsole" />
          <mx:SecureDeviceAssociationUsage Type="AcceptOnMicrosoftConsole" />          
        </mx:AllowedUsages>
      </mx:SecureDeviceAssociationTemplate>
    </mx:SecureDeviceAssociationTemplates>
  </mx:XboxNetworkingManifest>
</mx:Extension>  

See also

Specifying the Secure Device Association Templates for your App