Extensions.ToStringBasedOnIPFormat Method
Namespace: Riptide.Utils
Assembly: RiptideNetworking.dll
ToStringBasedOnIPFormat(IPEndPoint)
Takes the IPEndPoint's IP address and port number and converts it to a string, accounting for whether the address is an IPv4 or IPv6 address.
public static string ToStringBasedOnIPFormat(this IPEndPoint endPoint)
Parameters
IPEndPoint | endPoint |
Returns
string | A string containing the IP address and port number of the endpoint. |