XblMultiplayerManagerLobbySessionSetLocalMemberConnectionAddress

Sets the connection address for the local member.

Syntax

HRESULT XblMultiplayerManagerLobbySessionSetLocalMemberConnectionAddress(  
         XblUserHandle user,  
         const char* connectionAddress,  
         void* context  
)  

Parameters

user   _In_
Type: XblUserHandle

The user you want to set the property for.

connectionAddress   _In_z_
Type: char*

The network connection address to set.

context   _In_opt_
Type: void*

Optional. The application-defined data to correlate the XblMultiplayerEvent to the initiating call.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Remarks

This function sets the network connection address of a local member in the lobby session. You can use the connection address for network and secure socket connections to that local member. Changes are batched and written to the service when XblMultiplayerManagerDoWork is called.
The result of this function is delivered as a multiplayer event with an event type set to XblMultiplayerEventType::LocalMemberConnectionAddressWriteCompleted. You can call XblMultiplayerManagerDoWork to retrieve multiplayer events.

Requirements

Header: multiplayer_manager_c.h

Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

multiplayer_manager_c
XblMultiplayerManagerLobbySessionSetLocalMemberProperties
XblMultiplayerEvent