예제 #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();
 }