public Create ( |
||
socketAddress | ||
return |
using System; using System.Net; namespace IPEndPointExample { class Program { static void Main(string[] args) { // Creating a new IPEndPoint object with IP address 127.0.0.1 and port number 8080 IPEndPoint endPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 8080); Console.WriteLine(endPoint.ToString()); // Output: 127.0.0.1:8080 } } }In this example, we are creating a new IPEndPoint object with IP address 127.0.0.1 and port number 8080. Then we are printing the endpoint to the console using the ToString() method. This package library is provided by the .NET Framework Class Library.
public Create ( |
||
socketAddress | ||
return |