mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
source code checkin
This commit is contained in:
parent
5f8fb2c825
commit
7e57b72e35
675 changed files with 168433 additions and 0 deletions
37
src/QueryMaster/Rcon.cs
Normal file
37
src/QueryMaster/Rcon.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace QueryMaster
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides methods to access server using rcon password.
|
||||
/// </summary>
|
||||
public abstract class Rcon : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Send a Command to server.
|
||||
/// </summary>
|
||||
/// <param name="cmd">Server command.</param>
|
||||
/// <returns>Reply from server(string).</returns>
|
||||
public abstract string SendCommand(string cmd);
|
||||
/// <summary>
|
||||
/// Add a client socket to server's logaddress list.
|
||||
/// </summary>
|
||||
/// <param name="ip">IP-Address of client.</param>
|
||||
/// <param name="port">Port number of client.</param>
|
||||
public abstract void AddlogAddress(string ip, ushort port);
|
||||
|
||||
/// <summary>
|
||||
/// Delete a client socket to server's logaddress list.
|
||||
/// </summary>
|
||||
/// <param name="ip">IP-Address of client.</param>
|
||||
/// <param name="port">Port number of client.</param>
|
||||
public abstract void RemovelogAddress(string ip, ushort port);
|
||||
/// <summary>
|
||||
/// Disposes rcon Object
|
||||
/// </summary>
|
||||
public abstract void Dispose();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue