-flood_recalc(int fd, void *data)
-{
- struct Client *client_p = data;
- struct LocalUser *lclient_p = client_p->localClient;
-
- /* This can happen in the event that the client detached. */
- if(!lclient_p)
- return;
-
- /* allow a bursting client their allocation per second, allow
- * a client whos flooding an extra 2 per second
- */
- if(IsFloodDone(client_p))
- lclient_p->sent_parsed -= 2;
- else
- lclient_p->sent_parsed = 0;
-
- if(lclient_p->sent_parsed < 0)
- lclient_p->sent_parsed = 0;
-
- if(--lclient_p->actually_read < 0)
- lclient_p->actually_read = 0;
-
- parse_client_queued(client_p);
-
- if(IsAnyDead(client_p))
- return;
-
- /* and finally, reset the flood check */
- rb_setflush(fd, 1000, flood_recalc, client_p);
-}
-
-/*
- * read_ctrl_packet - Read a 'packet' of data from a servlink control
- * link and process it.
- */
-void
-read_ctrl_packet(int fd, void *data)