示例#1
0
        static void Main(string[] args)
        {
            Chat chat = new Chat();

            string publicAdress = StunIntegration.GetPublicIpAdress(chat.MyIpAddress, chat.MyPort);

            Console.WriteLine(publicAdress);
            DBIntegration.InserIpAddress(publicAdress);

            while (true)
            {
                chat.Send(Console.ReadLine());
            }
        }
示例#2
0
 public void GetListAddresses()
 {
     addresses = DBIntegration.GetIpAddress();
 }