IPEndPoint.Create メソッドとは何? わかりやすく解説 Weblio辞書 (original) (raw)
指定した SocketAddress を使用して、IPEndPoint を作成する例を次に示します。
' Recreate the connection endpoint from the serialized information. Dim endpoint As New IPEndPoint(0, 0) Dim clonedIPEndPoint As IPEndPoint = CType(endpoint.Create(socketAddress), IPEndPoint) Console.WriteLine(("clonedIPEndPoint: " + clonedIPEndPoint.ToString()))
// Recreate the connection endpoint from the serialized information. IPEndPoint endpoint = new IPEndPoint(0,0); IPEndPoint clonedIPEndPoint = (IPEndPoint) endpoint.Create(socketAddress); Console.WriteLine("clonedIPEndPoint: " + clonedIPEndPoint.ToString());
// Recreate the connection endpoint from the serialized information. IPEndPoint^ endpoint = gcnew IPEndPoint( (__int64)0,0 ); IPEndPoint^ clonedIPEndPoint = dynamic_cast<IPEndPoint^>(endpoint->Create( socketAddress )); Console::WriteLine( "clonedIPEndPoint: {0}", clonedIPEndPoint );
// Recreate the connection endpoint from the serialized information. IPEndPoint endpoint = new IPEndPoint(0, 0); IPEndPoint clonedIPEndPoint = ((IPEndPoint)(endpoint.Create(socketAddress))); Console.WriteLine(("clonedIPEndPoint: " + clonedIPEndPoint.ToString()));