2021-07-11 18:26:30 -04:00
|
|
|
|
using System.Net;
|
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
2020-02-11 17:44:06 -05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// defines the capabilities of an RCon connection factory
|
2020-02-11 17:44:06 -05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IRConConnectionFactory
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// creates an rcon connection instance
|
2020-02-11 17:44:06 -05:00
|
|
|
|
/// </summary>
|
2021-07-11 18:26:30 -04:00
|
|
|
|
/// <param name="ipEndpoint">ip address and port of the server</param>
|
2020-02-11 17:44:06 -05:00
|
|
|
|
/// <param name="password"> password of the server</param>
|
2021-06-03 11:51:03 -04:00
|
|
|
|
/// <param name="rconEngine">engine to create the rcon connection to</param>
|
2020-02-11 17:44:06 -05:00
|
|
|
|
/// <returns>instance of rcon connection</returns>
|
2021-07-11 18:26:30 -04:00
|
|
|
|
IRConConnection CreateConnection(IPEndPoint ipEndpoint, string password, string rconEngine);
|
2020-02-11 17:44:06 -05:00
|
|
|
|
}
|
2022-01-26 11:32:16 -05:00
|
|
|
|
}
|