struct sockaddr_in addr;
-MyEventType NetGenFunc(EventGenRec *gen, MyEvent *event);
+static MyEventType NetGenFunc(EventGenRec *gen, MyEvent *event);
static EventGenRec netGen[MAX_SCREENS] = {
{ NULL, 0, FT_read, -1, NetGenFunc, EM_net, 0, "\0", 0, HEADER_SIZE }
};
static sigjmp_buf close_env;
-void SendPacketTo(short playa, short uid, NetPacketType type, int size, void *data)
+static void SendPacketTo(short playa, short uid, NetPacketType type, int size, void *data)
{ //send to someone
netint4 header[3];
return E_alarm;
}
-void SCloseNet(short playa)
+static void SCloseNet(short playa)
{ //kick some connection's ass!
MyEvent event;
RemoveEventGen(&netGen[playa]);
}
-void CloseNets(void)
+static void CloseNets(void)
{ //nou oogjes dicht en snaveltjes toe
int i;
fprintf(stderr, MSG_SERVER_CLOSE_ALL_DONE "\n\n");
}
-MyEventType NetGenFunc(EventGenRec *gen, MyEvent *event)
+static MyEventType NetGenFunc(EventGenRec *gen, MyEvent *event)
{ //receive
int result;
short uid, type, size;
return E_connect;
}
-void CountPlayers(void)
+static void CountPlayers(void)
{ //count number of players/teams
int i, j;
playercount = 0;
} //player alive
}
-int StartServer(void)
+static int StartServer(void)
{
MyEvent event;
netint2 currentpiece[MAX_SCREENS];
}
-void SHeader(void)
+static void SHeader(void)
{
fprintf(stderr, MSG_SERVER_TITLE "\n\n", version_string);
}
-void SUsage(void)
+static void SUsage(void)
{
SHeader();
fprintf(stderr,
);
}
-void HandleOption(char tag, char *value)
+static void HandleOption(char tag, char *value)
{
switch (tag) {
case 'v': //verbose
}
}
-void ReadConf(char *filename)
+static void ReadConf(char *filename)
{
FILE *file_in;
char buf[513];
}
-void CatchInt(int sig)
+static void CatchInt(int sig)
{
siglongjmp(close_env, 1);
}