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

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

fuugetu flowerbird發表於
Number of replies: 0

(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 ?