FiberSocketConnection.sameAddress

Compares ip_address_str and port with the current address and port.

  1. bool sameAddress(InAddr addr)
  2. bool sameAddress(cstring ip_address_str, ushort port)
    class FiberSocketConnection(bool IPv6 = false)
    bool
    sameAddress

Parameters

ip_address_str cstring

string with the IP address to compare with the current address

port ushort

port to compare with the current

Return Value

Type: bool

true if ip_address_str and port are the same as the current or false if not.

Throws

SocketError if ip_address_str does not contain a valid IP address.

Meta