SafeNet/.svn/pristine/f4/f491771d57fb8aaf2af78e42f9018a39b0138809.svn-base

33 lines
619 B
Plaintext
Raw Permalink Normal View History

2021-02-24 11:50:23 +00:00
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]);
}
}
}