Helper ToEPButeArray Method sP2P NAT Traversal and peer-to-peer networking API
sP2P NAT Traversal and peer-to-peer networking API
Converts IPEndPoint to 6 bytes , 4 for IP4Address ans 2 for port

Namespace: sP2PLib
Assembly: sP2PLib (in sP2PLib.dll) Version: 1.6.0.0 (1.6.0.0)
Syntax

<ExtensionAttribute> _
Public Shared Function ToEPButeArray ( _
	EP As IPEndPoint _
) As Byte()

Parameters

EP
Type: System.Net IPEndPoint
The EP to act on.

Return Value

EP as a byte[].

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPEndPoint. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].
See Also