Holds host and port
More...
|
bool | IsValid [get] |
| Is the address valid? To be valid, Host must be non-empty and Port must be non-zero. More...
|
|
◆ ksAddress() [1/2]
KS.Reactor.ksAddress.ksAddress |
( |
string |
host, |
|
|
ushort |
port |
|
) |
| |
◆ ksAddress() [2/2]
KS.Reactor.ksAddress.ksAddress |
( |
ksJSON |
json | ) |
|
Constructs an address from a ksJSON object.
- Parameters
-
json | Json object containing host and port fields. |
◆ Deserialize()
Deserializes the address from an input buffer.
- Parameters
-
input | Input to deserialize from. |
◆ Equals()
override bool KS.Reactor.ksAddress.Equals |
( |
object |
obj | ) |
|
Checks if this address is equal to an object.
- Parameters
-
- Returns
- True if the object is an equivalent address.
◆ GetHashCode()
override int KS.Reactor.ksAddress.GetHashCode |
( |
| ) |
|
Gets the hash code for the address.
- Returns
- Hash code
◆ operator!=()
Checks if two addresses are not the same.
- Parameters
-
- Returns
- True if the addresses are not the same.
◆ operator==()
Checks if two addresses are the same.
- Parameters
-
- Returns
- True if the addresses are the same.
◆ Serialize()
Serializes the address to an output buffer.
- Parameters
-
output | Output to serialize to. |
◆ ToJSON()
ksJSON KS.Reactor.ksAddress.ToJSON |
( |
| ) |
|
Converts the address to a ksJSON object.
- Returns
- Json object containing host and port fields.
◆ ToString()
override string KS.Reactor.ksAddress.ToString |
( |
| ) |
|
◆ Host
string KS.Reactor.ksAddress.Host |
◆ Port
ushort KS.Reactor.ksAddress.Port |
◆ IsValid
bool KS.Reactor.ksAddress.IsValid |
|
get |
Is the address valid? To be valid, Host must be non-empty and Port must be non-zero.