15 lines
357 B
C#
15 lines
357 B
C#
|
|
using System.Net;
|
||
|
|
using CoreRCON;
|
||
|
|
|
||
|
|
namespace LANCommander.Server.Services.Models;
|
||
|
|
|
||
|
|
public class RconConnection
|
||
|
|
{
|
||
|
|
public RCON RCON { get; set; }
|
||
|
|
public LogReceiver LogReceiver { get; set; }
|
||
|
|
|
||
|
|
public RconConnection(string host, int port, string password)
|
||
|
|
{
|
||
|
|
RCON = new RCON(new IPEndPoint(IPAddress.Parse(host), port), password);
|
||
|
|
}
|
||
|
|
}
|