Blame include/heartbeat.h

Packit 90a5c9
/* Licensed to the Apache Software Foundation (ASF) under one or more
Packit 90a5c9
 * contributor license agreements.  See the NOTICE file distributed with
Packit 90a5c9
 * this work for additional information regarding copyright ownership.
Packit 90a5c9
 * The ASF licenses this file to You under the Apache License, Version 2.0
Packit 90a5c9
 * (the "License"); you may not use this file except in compliance with
Packit 90a5c9
 * the License.  You may obtain a copy of the License at
Packit 90a5c9
 *
Packit 90a5c9
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 90a5c9
 *
Packit 90a5c9
 * Unless required by applicable law or agreed to in writing, software
Packit 90a5c9
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 90a5c9
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 90a5c9
 * See the License for the specific language governing permissions and
Packit 90a5c9
 * limitations under the License.
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * @file  heartbeat.h
Packit 90a5c9
 * @brief commun structures for mod_heartmonitor.c and mod_lbmethod_heartbeat.c
Packit 90a5c9
 *
Packit 90a5c9
 * @defgroup HEARTBEAT heartbeat
Packit 90a5c9
 * @ingroup  APACHE_MODS
Packit 90a5c9
 * @{
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
#ifndef HEARTBEAT_H
Packit 90a5c9
#define HEARTBEAT_H
Packit 90a5c9
Packit 90a5c9
#include "apr.h"
Packit 90a5c9
#include "apr_time.h"
Packit 90a5c9
Packit 90a5c9
#ifdef __cplusplus
Packit 90a5c9
extern "C" {
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
/*
Packit 90a5c9
 * Worse Case: IPv4-Mapped IPv6 Address
Packit 90a5c9
 * 0000:0000:0000:0000:0000:FFFF:255.255.255.255
Packit 90a5c9
 */
Packit 90a5c9
#define MAXIPSIZE  46
Packit 90a5c9
typedef struct hm_slot_server_t
Packit 90a5c9
{
Packit 90a5c9
    char ip[MAXIPSIZE];
Packit 90a5c9
    int busy;
Packit 90a5c9
    int ready;
Packit 90a5c9
    apr_time_t seen;
Packit 90a5c9
    int id;
Packit 90a5c9
} hm_slot_server_t;
Packit 90a5c9
Packit 90a5c9
/* default name of heartbeat data file, created in the configured
Packit 90a5c9
 * runtime directory when mod_slotmem_shm is not available
Packit 90a5c9
 */
Packit 90a5c9
#define DEFAULT_HEARTBEAT_STORAGE "hb.dat"
Packit 90a5c9
Packit 90a5c9
#ifdef __cplusplus
Packit 90a5c9
}
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
#endif /* HEARTBEAT_H */
Packit 90a5c9
/** @} */