socks5.Socks5Client.Socks5Client.DoSocks C# (CSharp) Method

DoSocks() private method

private DoSocks ( IPAddress ip, int port, string dest, int destport, string username = null, string password = null ) : void
ip System.Net.IPAddress
port int
dest string
destport int
username string
password string
return void
        private void DoSocks(IPAddress ip, int port, string dest, int destport, string username = null, string password = null)
        {
            ipAddress = ip;
            Port = port;
            //check for username & pw.
            if(username != null && password != null)
            {
                Username = username;
                Password = password;
                reqPass = true;
            }
            Dest = dest;
            Destport = destport;
        }