peb_linkinfo — Get information about the link
Returns an array that contain detailed information about the link.
The Erlang node connection. If the link identifier is not specified, the last link opened by peb_connect() is assumed.
Returns information about the link on success, or FALSE on failure.
Example #1 peb_error() example
<?php
$link = peb_connect('sadly-desktop@sadly-desktop', 'secret_cookie');
if (!$link) {
die('Could not connect: ['
.
peb_errno()
.
']'
.
peb_error()
);
}
$ret = peb_linkinfo($link);
print_r($ret);
peb_close($link);
?>
The above example will output:
Array ( [thishostname] => sadly-desktop [thisnodename] => peb_client_8822_12@sadly-desktop [thisalivename] => peb_client_8822_12 [connectcookie] => secret_cookie [creation] => 12 [is_persistent] => 0 )