33 lines
619 B
C#
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]);
|
|
}
|
|
}
|
|
}
|