FiberSocketConnection.sameAddress

Compares ip_address_str and port with the current address and port.

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

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