+
+ /**
+ * Checks wether the given address (IP) matches with the one from the socket resource
+ *
+ * @param $addressPort The address:port (IP to check
+ * @return $matches Wether $address matches with the one from socket resource
+ */
+ public final function ifAddressMatches ($addressPort) {
+ // Get current package data
+ $data = $this->getPackageData();
+
+ // So, does both match?
+ $matches = ((isset($data['recipient'])) && ($data['recipient'] === $addressPort));
+
+ // Return result
+ return $matches;
+ }