view src/lib/hostpid.h @ 9658:8ba4253adc9b HEAD tip

*-login: SSL connections didn't get closed when the client got destroyed.
author Timo Sirainen <tss@iki.fi>
date Thu, 08 May 2014 16:41:29 +0300
parents 2609eca99495
children
line wrap: on
line source

#ifndef HOSTPID_H
#define HOSTPID_H

extern const char *my_hostname;
extern const char *my_pid;

/* Initializes my_hostname and my_pid. */
void hostpid_init(void);

/* Returns the current host+domain, or if it fails fallback to returning
   hostname. */
const char *my_hostdomain(void);

#endif