Data Structures | |
struct | chksvc_service_t |
Typedefs | |
typedef chksvc_service_t | chksvc_service_t |
Functions | |
apr_status_t | chksvc_service_create (chksvc_service_t **self, const char *addr, short port, const char *type, sul_boolean_t use_ssl, apr_pool_t *pool) |
apr_status_t | chksvc_service_open (chksvc_service_t *self) |
apr_status_t | chksvc_service_initialize (chksvc_service_t *self, apr_pool_t *pool) |
apr_status_t | chksvc_service_set_default_port (chksvc_service_t *self, short port, short sport) |
apr_status_t | chksvc_service_close (chksvc_service_t *self) |
apr_status_t | chksvc_service_send (chksvc_service_t *self, char *data, apr_size_t *sz) |
apr_status_t | chksvc_service_recv (chksvc_service_t *self, char *data, apr_size_t *sz) |
|
Service object, contains the properties on the actual service being checked, where it's located and the information necessary to check. The socket and SSL context are also associated with the chksvc_service_t object. |
|
Closes the service connection, cleaning up after ourselves and making sure we don't leave the remote end just hanging there.
|
|
Creates a new chksvc_service_t object with the given properties.
|
|
Initializes the internal data structures that this service uses to perform its check, including polling, sockets, and SSL data structures.
|
|
Opens a new connection, establishing a connection with the remote machine.
|
|
Receives some data from the remote service, taking into consideration if we're using SSL or have a time constraint or some other special condition to consider.
|
|
Sends some data to the service, taking into consideration if we're using SSL or have a time constraint or some other special condition that should be considered.
|
|
Sets the default ports for this service if a port hasn't been specified, this is nice for when that aren't given and we'd just like to use the defaults.
|