Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ResponseEventArgs.cs
1using System;
2using System.Net;
3
5{
9 public class ResponseEventArgs : EventArgs
10 {
11 private readonly IPAddress ipAddress;
12 private readonly string domainName;
13 private readonly int port;
14 private readonly byte responseCode;
15
23 internal ResponseEventArgs(byte ResponseCode, IPAddress IpAddress, string DomainName, int Port)
24 {
25 this.responseCode = ResponseCode;
26 this.ipAddress = IpAddress;
27 this.domainName = DomainName;
28 this.port = Port;
29 }
30
34 public bool Ok
35 {
36 get { return this.responseCode == 0; }
37 }
38
42 public IPAddress IpAddress => this.ipAddress;
43
47 public string DomainName => this.domainName;
48
52 public int PortNumber => this.port;
53 }
54}
Event arguments for SOCKS5 responses.
IPAddress IpAddress
IP Address, or null if destination address is a domain name.
string DomainName
Domain Name, or null if destiation address is an IP address.