Heartbeat message type.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | BEAT_CLIENT_LEN | = | 32 |
Client software name and version length. |
integer, | public, | parameter | :: | BEAT_SIZE | = | storage_size(beat_type())/8 |
Size of |
Returns whether heartbeats are equal.
Returns .true.
if given beats are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(beat_type), | intent(in) | :: | beat1 |
The first beat. |
||
type(beat_type), | intent(in) | :: | beat2 |
The second beat. |
Status message (heartbeat) type.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=NODE_ID_LEN), | public | :: | node_id | = | ' ' |
Node id ( |
|
character(len=NET_IPV6_LEN), | public | :: | address | = | ' ' |
Client IP address (IPv4, IPv6). |
|
character(len=BEAT_CLIENT_LEN), | public | :: | client | = | ' ' |
Client software name and version. |
|
character(len=TIME_LEN), | public | :: | time_sent | = | TIME_DEFAULT |
Time heartbeat was sent. |
|
character(len=TIME_LEN), | public | :: | time_recv | = | TIME_DEFAULT |
Time heartbeat was received. |
|
integer, | public | :: | error | = | E_NONE |
Last client error. |
|
integer, | public | :: | interval | = | 0 |
Transmission interval in seconds. |
|
integer, | public | :: | uptime | = | 0 |
System uptime in seconds. |
Returns .true.
if given beat type elements are valid.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(beat_type), | intent(in) | :: | beat |
Beat type. |
Prints beat to standard output or given file unit.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(beat_type), | intent(inout) | :: | beat |
Beat type. |
||
integer, | intent(in), | optional | :: | unit |
File unit. |