38 lines
731 B
C
Executable File
38 lines
731 B
C
Executable File
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <errno.h>
|
|
#include <string.h>
|
|
#include <pthread.h>
|
|
|
|
//#include "elev.h"
|
|
#include "localsys.h"
|
|
#include "netmod.h"
|
|
#include "globals.h"
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
|
if (argc > 1) {
|
|
printf("Usage: Just run 'heis' on Sanntidssalen.\n");
|
|
return 1;
|
|
}
|
|
|
|
printf("\n########################################\n");
|
|
printf("Group 20\nMichael Soukup & Petter Rossvoll\n");
|
|
printf("########################################\n\n");
|
|
|
|
printf("Initializing network on subnet %s through port %d...\n", IPGROUP, PORT);
|
|
|
|
net_init();
|
|
|
|
printf("Initializing elevator...\n");
|
|
int callback_th;
|
|
callback_th = localsys_init();
|
|
|
|
|
|
while (1) {
|
|
|
|
}
|
|
return 0;
|
|
}
|