Creates an array of bytes that has to be sent when the user wants to connect to a specific host/port combination.
[Visual Basic]Private Function GetHostPortBytes( _
ByVal host As String, _
ByVal port As Integer _
) As Byte()
[C#]
private byte[] GetHostPortBytes(
string host,
int port
);
Parameters
- host
- The host to connect to.
- port
- The port to connect to.
Return Value
An array of bytes that has to be sent when the user wants to connect to a specific host/port combination.
Exceptions
Exception Type | Condition |
---|---|
System.ArgumentNullException | host is null. |
System.ArgumentException | port or host is invalid. |
See Also
Socks5Handler Class | Socks5Handler Members | Org.Mentalis.Network.ProxySocket Namespace