… | |
… | |
3 | * Rights to this code are documented in doc/pod/license.pod. |
3 | * Rights to this code are documented in doc/pod/license.pod. |
4 | * |
4 | * |
5 | * Copyright © 2005-2007 Atheme Project (http://www.atheme.org) |
5 | * Copyright © 2005-2007 Atheme Project (http://www.atheme.org) |
6 | */ |
6 | */ |
7 | |
7 | |
8 | static char const rcsid[] = "$Id: send.C,v 1.6 2007/08/29 21:01:19 pippijn Exp $"; |
8 | static char const rcsid[] = "$Id: send.C,v 1.7 2007/08/30 19:56:26 pippijn Exp $"; |
9 | |
9 | |
10 | #include "atheme.h" |
10 | #include "atheme.h" |
11 | #include "uplink.h" |
11 | #include "uplink.h" |
12 | #include "datastream.h" |
12 | #include "datastream.h" |
|
|
13 | #include "connection.h" |
13 | |
14 | |
14 | /* send a line to the server, append the \r\n */ |
15 | /* send a line to the server, append the \r\n */ |
15 | int |
16 | int |
16 | sts (char const * const fmt, ...) |
17 | sts (char const * const fmt, ...) |
17 | { |
18 | { |
… | |
… | |
74 | delay = event_next_time (); |
75 | delay = event_next_time (); |
75 | |
76 | |
76 | if (delay <= NOW) |
77 | if (delay <= NOW) |
77 | event_run (); |
78 | event_run (); |
78 | |
79 | |
79 | connection_select (25000); |
80 | connection_t::select (25000); |
80 | |
81 | |
81 | gc.collect (); |
82 | gc.collect (); |
82 | } |
83 | } |
83 | } |
84 | } |