2023-11-10 13:55:42 +00:00
|
|
|
using System.Net.Sockets;
|
2023-09-23 11:11:07 +00:00
|
|
|
using System.Net.WebSockets;
|
|
|
|
|
|
|
|
namespace Tiger.Networking.Game.Sessions;
|
|
|
|
|
|
|
|
public interface IGameSessionManager
|
|
|
|
{
|
2023-11-10 13:55:42 +00:00
|
|
|
GameSession AddSession(TcpClient client);
|
|
|
|
void RemoveSession(TcpClient client);
|
2023-09-23 11:11:07 +00:00
|
|
|
void CloseAll();
|
2023-11-10 13:55:42 +00:00
|
|
|
GameSession? GetSession(TcpClient client);
|
2023-09-23 11:11:07 +00:00
|
|
|
GameSession? GetSession(string sessionId);
|
2023-11-10 13:55:42 +00:00
|
|
|
Task CloseAsync(GameSession gameSession);
|
2023-09-23 11:11:07 +00:00
|
|
|
}
|