バグレポート

グリッド接続のSIMにテレポート出来ません

 
fuugetu flowerbird
Re: グリッド接続のSIMにテレポート出来ません
2015年 05月 19日(火曜日) 12:43 - fuugetu flowerbird の投稿
 

(Fuugetu translated 2 comments of Iseki's.)

(first comment)

It seems this issue is bug of mono.
Rather than bug, it seems that mono have no function for picking up time of IP cache.
so I can't help it. 悲しい

-----------------------

(second comment)

Later, I checked out the source code mono-3.12.1. I could not find the part of IP cache.

mcs/class/System/System.Net/Dns.cs
mono/metadata/socket-io.c
mono/io-layer/sockets.c

It maybe around this part... But I know that the code read gethostbyname() so on finally.
So I made the program what such as following. Then changed A-record by DNS, it was changed immediately.

using System;
using System.Net;

namespace net.jogrid
{
public class TestClass
{
public static void Main(string[] args)
{
while(true)
{
foreach (IPAddress host in Dns.GetHostAddresses("test.jogrid.net"))
{
Console.WriteLine(host.ToString());
}
System.Threading.Thread.Sleep(10000);
}
}
}
}

I am wondering if mono have cache of IP.
or Is it my misunderstanding something ?