com.onlineobject.objectnet Namespace

EmbeddedExtensions..::..ToStringBasedOnIPFormat Method

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.

Namespace:  com.onlineobject.objectnet.server.Utils
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public static string ToStringBasedOnIPFormat(

	this IPEndPoint endPoint

)

Parameters

endPoint
Type: IPEndPoint

Return Value

A string containing the IP address and port number of the endpoint.