Ignore:
Timestamp:
Jan 27, 2023, 7:28:00 PM (22 months ago)
Author:
alloc
Message:
  • Major refactoring
  • Using Utf8Json for (de)serialization
  • Moving APIs to REST
  • Removing dependencies from WebServer and MapRenderer to ServerFixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/ConnectionHandler.cs

    r391 r402  
    22using System.Collections.Generic;
    33using System.Net;
    4 using Platform.Steam;
    54
    65namespace Webserver {
     
    1918
    2019                        if (!Equals (con.Endpoint, _ip)) {
    21                                 // Fixed: Allow different clients from same NAT network
    22 //                              connections.Remove (_sessionId);
     20                                connections.Remove (_sessionId);
    2321                                return null;
    2422                        }
     
    3331                }
    3432
    35                 public WebConnection LogIn (ulong _steamId, IPAddress _ip) {
     33                public WebConnection LogIn (PlatformUserIdentifierAbs _userId, IPAddress _ip) {
    3634                        string sessionId = Guid.NewGuid ().ToString ();
    37                         PlatformUserIdentifierAbs userId = new UserIdentifierSteam (_steamId);
    38                         WebConnection con = new WebConnection (sessionId, _ip, userId);
     35                        WebConnection con = new WebConnection (sessionId, _ip, _userId);
    3936                        connections.Add (sessionId, con);
    4037                        return con;
Note: See TracChangeset for help on using the changeset viewer.