forked from justanhduc/task-spooler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.h
More file actions
36 lines (27 loc) · 603 Bytes
/
Copy pathserver.h
File metadata and controls
36 lines (27 loc) · 603 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
Task Spooler PLUS - a multi-user job scheduler like slurm.
Copyright (C) 2007-2026 Kylin JIANG - Lluís Batlle i Rossell
Please find the license in the provided COPYING file.
*/
#ifndef SERVER_H
#define SERVER_H
#include <stdint.h>
#include "msg.h"
struct ucred {
uint32_t pid;
uint32_t uid;
uint32_t gid;
};
struct User;
struct Client_conn {
int socket;
int hasjob;
int jobid;
struct User *user;
};
enum { MAXCONN = 1000 };
extern char *logdir;
/* server.c */
void server_main(int notify_fd, char *_path);
void dump_conns_struct(FILE *out);
#endif /* SERVER_H */