Converts a port number to an array of bytes.
[Visual Basic]Protected Function PortToBytes( _
ByVal port As Integer _
) As Byte()
[C#]
protected byte[] PortToBytes(
int port
);
Parameters
- port
- The port to convert.
Return Value
An array of two bytes that represents the specified port.
See Also
SocksHandler Class | SocksHandler Members | Org.Mentalis.Network.ProxySocket Namespace