Direct connection support
This commit is contained in:
1 parent
a99b097a83
commit
fc25760c2f
12 files changed
+397
-40
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Net;
|
||||
|
||||
namespace LobbyServerDto
|
||||
{
|
||||
@@ -41,13 +42,17 @@ namespace LobbyServerDto
|
||||
[MaxLength(16)]
|
||||
public byte[]? PasswordSalt { get; set; }
|
||||
/// <summary>
|
||||
/// The hosts ip. Used the the host information send to clients on their request.
|
||||
/// The hosts ip addresses locally detected. Used the the host information send to clients on their request.
|
||||
/// </summary>
|
||||
[MaxLength(32)]
|
||||
public string? HostIp { get; set; }
|
||||
public IPAddress[]? HostIps { get; set; }
|
||||
/// <summary>
|
||||
/// The hosts port. Used the the host information send to clients on their request.
|
||||
/// </summary>
|
||||
public int HostPort { get; set; }
|
||||
/// <summary>
|
||||
/// The hosts echo port to try if a connection is possible.
|
||||
/// </summary>
|
||||
public int HostTryPort { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Net;
|
||||
|
||||
namespace LobbyServerDto
|
||||
{
|
||||
@@ -13,13 +14,17 @@ namespace LobbyServerDto
|
||||
/// </summary>
|
||||
public Guid LobbyId { get; set; }
|
||||
/// <summary>
|
||||
/// The hosts ip, this could be an internal address
|
||||
/// The hosts ip addresses locally detected. Used the the host information send to clients on their request.
|
||||
/// </summary>
|
||||
[MaxLength(32)]
|
||||
public string? HostIp { get; set; }
|
||||
public IPAddress[]? HostIps { get; set; }
|
||||
/// <summary>
|
||||
/// The hosts port
|
||||
/// </summary>
|
||||
public int HostPort { get; set; }
|
||||
/// <summary>
|
||||
/// The hosts echo port to try if a connection is possible.
|
||||
/// </summary>
|
||||
public int HostTryPort { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Net;
|
||||
|
||||
namespace LobbyServerDto
|
||||
{
|
||||
@@ -7,7 +8,7 @@ namespace LobbyServerDto
|
||||
/// </summary>
|
||||
[LobbyMessage]
|
||||
public partial class LobbyUpdate
|
||||
{
|
||||
{
|
||||
/// <summary>
|
||||
/// The displayname of the lobby
|
||||
/// </summary>
|
||||
@@ -34,13 +35,17 @@ namespace LobbyServerDto
|
||||
[MaxLength(16)]
|
||||
public byte[]? PasswordSalt { get; set; }
|
||||
/// <summary>
|
||||
/// The hosts ip
|
||||
/// The hosts ip addresses locally detected. Used the the host information send to clients on their request.
|
||||
/// </summary>
|
||||
[MaxLength(32)]
|
||||
public string? HostIp { get; set; }
|
||||
public IPAddress[]? HostIps { get; set; }
|
||||
/// <summary>
|
||||
/// The hosts port
|
||||
/// The hosts port. Used the the host information send to clients on their request.
|
||||
/// </summary>
|
||||
public int HostPort { get; set; }
|
||||
/// <summary>
|
||||
/// The hosts echo port to try if a connection is possible.
|
||||
/// </summary>
|
||||
public int HostTryPort { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user