You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
2.5 KiB
109 lines
2.5 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.P2P
|
|
{
|
|
/// <summary>
|
|
/// Structure containing information about an incoming connection request.
|
|
/// </summary>
|
|
public class OnIncomingConnectionRequestInfo : ICallbackInfo, ISettable
|
|
{
|
|
/// <summary>
|
|
/// Client-specified data passed into <see cref="Presence.PresenceInterface.AddNotifyOnPresenceChanged" />
|
|
/// </summary>
|
|
public object ClientData { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The Product User ID of the local user who is being requested to open a P2P session with RemoteUserId
|
|
/// </summary>
|
|
public ProductUserId LocalUserId { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The Product User ID of the remote user who requested a peer connection with the local user
|
|
/// </summary>
|
|
public ProductUserId RemoteUserId { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The ID of the socket the Remote User wishes to communicate on
|
|
/// </summary>
|
|
public SocketId SocketId { get; private set; }
|
|
|
|
public Result? GetResultCode()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
internal void Set(OnIncomingConnectionRequestInfoInternal? other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
ClientData = other.Value.ClientData;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
RemoteUserId = other.Value.RemoteUserId;
|
|
SocketId = other.Value.SocketId;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as OnIncomingConnectionRequestInfoInternal?);
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct OnIncomingConnectionRequestInfoInternal : ICallbackInfoInternal
|
|
{
|
|
private System.IntPtr m_ClientData;
|
|
private System.IntPtr m_LocalUserId;
|
|
private System.IntPtr m_RemoteUserId;
|
|
private System.IntPtr m_SocketId;
|
|
|
|
public object ClientData
|
|
{
|
|
get
|
|
{
|
|
object value;
|
|
Helper.TryMarshalGet(m_ClientData, out value);
|
|
return value;
|
|
}
|
|
}
|
|
|
|
public System.IntPtr ClientDataAddress
|
|
{
|
|
get
|
|
{
|
|
return m_ClientData;
|
|
}
|
|
}
|
|
|
|
public ProductUserId LocalUserId
|
|
{
|
|
get
|
|
{
|
|
ProductUserId value;
|
|
Helper.TryMarshalGet(m_LocalUserId, out value);
|
|
return value;
|
|
}
|
|
}
|
|
|
|
public ProductUserId RemoteUserId
|
|
{
|
|
get
|
|
{
|
|
ProductUserId value;
|
|
Helper.TryMarshalGet(m_RemoteUserId, out value);
|
|
return value;
|
|
}
|
|
}
|
|
|
|
public SocketId SocketId
|
|
{
|
|
get
|
|
{
|
|
SocketId value;
|
|
Helper.TryMarshalGet<SocketIdInternal, SocketId>(m_SocketId, out value);
|
|
return value;
|
|
}
|
|
}
|
|
}
|
|
}
|