31 lines
452 B
C
31 lines
452 B
C
/*
|
|
*
|
|
*/
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <ei.h>
|
|
#include <strings.h>
|
|
#include <unistd.h>
|
|
#include <uv.h>
|
|
#include <uv/unix.h>
|
|
#include <uv/bsd.h>
|
|
|
|
#define COOKIE_SIZE 1024
|
|
#define NODE_NAME_SIZE 1024
|
|
|
|
int id = 0;
|
|
char cookie[COOKIE_SIZE];
|
|
char node_name[NODE_NAME_SIZE];
|
|
|
|
void
|
|
init() {
|
|
bzero(&cookie, sizeof(char)*COOKIE_SIZE);
|
|
bzero(&node_name, sizeof(char)*NODE_NAME_SIZE);
|
|
}
|
|
|
|
int
|
|
main(int argc, char *argv[]) {
|
|
(void) init();
|
|
}
|
|
|