<mx:SecureDeviceSocketUsage> Element

A SecureDeviceSocketUsage flag to enable.

Every AllowedUsages element must have one or more SecureDeviceSocketUsage elements.

Syntax

<mx:SecureDeviceSocketUsage
  Type = string />  

Attributes

Type
The name of the SecureDeviceSocketUsage enum value to enable. Must be unique among all SecureDeviceSocketUsage nodes for this SecureDeviceSocketDescription. Valid values are “Initiate”, “Accept”, “SendChat”, “SendGameData”, “SendDebug”, “ReceiveChat”, “ReceiveGameData”, and “ReceiveDebug”.

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