SafeNet/SN_Server/ServerIdent.cs
2021-02-24 13:50:23 +02:00

33 lines
619 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SN_Server
{
public class ServerIdent
{
private string ip;
public string IP
{
get { return ip; }
set { ip = value; }
}
private int port;
public int Port
{
get { return port; }
set { port = value; }
}
public ServerIdent() { }
public ServerIdent(string ident)
{
ip = ident.Split(':')[0];
port = Convert.ToInt32(ident.Split(':')[1]);
}
}
}