#include <deque>
#include "inspircd.h"
#include "modules.h"
+#include "inspstring.h"
using namespace std;
extern int MODCOUNT;
-
+extern time_t TIME;
connection::connection()
{
setsockopt(fd,SOL_SOCKET,SO_REUSEADDR,(const char*)&on,sizeof(on));
linger.l_onoff = 1;
- linger.l_linger = 0;
+ linger.l_linger = 1;
setsockopt(fd,SOL_SOCKET,SO_LINGER,(const char*)&linger,sizeof(linger));
// attempt to increase socket sendq and recvq as high as its possible
long connection::GenKey()
{
- srand(time(NULL));
return (random()*time(NULL));
}