if (size > 0 && data && MyWrite(netGen[playa].fd, data, size) != size)
die("write");
}
-} //SendPacketTo
+}
static MyEventType AlarmGenFunc(EventGenRec *gen, MyEvent *event)
{
return E_alarm;
-} //AlarmGenFunc
+}
void SCloseNet(short playa)
{ //kick some connection's ass!
}
if (netGen[playa].next)
RemoveEventGen(&netGen[playa]);
-} //SCloseNet
+}
void CloseNets(void)
{ //nou oogjes dicht en snaveltjes toe
for (i = 1; i < MAX_SCREENS; i++)
SCloseNet(i); //bye everybuddy
fprintf(stderr, "* All Done\n\n");
-} //CloseNets
+}
MyEventType NetGenFunc(EventGenRec *gen, MyEvent *event)
{ //receive
return E_lostConn;
} //client sent quit signal
return E_net;
-} //NetGenFunc
+}
static MyEventType ConnGenFunc(EventGenRec *gen, MyEvent *event)
}
} //E_connect
return E_connect;
-} //ConnGenFunc
+}
void CountPlayers(void)
{ //count number of players/teams
} //player of same team counted before
playercount++;
} //player alive
-} //CountPlayers
+}
int StartServer(void)
{
} //game (ready to) start(ed)
} while (1);
fprintf(stderr, "* Exiting server\n");
-} //StartServer
+}
void SHeader(void)
fclose(file_out);
fprintf(stderr, "Wrote new game configuration to %s\n", CONFIG_FILE);
-} //WriteConf
+}
void HandleOption(char tag, char *value)
{
default:
break;
}
-} //HandleParam
+}
void ReadConf(char *filename)
{
fprintf(stderr, "Unable to open config file %s.\n", filename);
} //defaults
-} //ReadConf
+}
void CatchInt(int sig)
{
return 0;
}
-/*
- * vi: ts=4 ai
- * vim: noai si
- */