master-login-interface.h revision c25356d5978632df6203437e1953bcb29e0c736f
#ifndef MASTER_LOGIN_INTERFACE_H
#define MASTER_LOGIN_INTERFACE_H
#include "network.h"
#define LOGIN_MASTER_SOCKET_FD 3
/* Increase the version number every time master_login_request
(or something else) is changed. */
#define MASTER_LOGIN_PROTOCOL_VERSION 3
enum master_login_state {
/* process is accepting new connections */
/* process isn't accepting new connections, but it'd be able to kill
some connections which haven't logged in yet */
/* process is handling only logged in users */
};
struct master_login_request {
/* if fd == -1, tag is used as master_login_state */
};
enum master_login_status {
/* user reached max. simultaneous connections */
};
struct master_login_reply {
unsigned int tag;
enum master_login_status status;
};
#endif