peb_linkinfo

peb_linkinfoGet information about the link

Description

array peb_linkinfo ([ resource $link_identifier ] )

Returns an array that contain detailed information about the link.

Parameters

link_identifier

The Erlang node connection. If the link identifier is not specified, the last link opened by peb_connect() is assumed.

Return Values

Returns information about the link on success, or FALSE on failure.

Examples

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
)

See Also