brain
328132ad33
Added notification socket
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4482 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 23:27:47 +00:00
brain
21fe513770
One mess and a half that compiles. To be tidied some day after it works (i dread that day.)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4481 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 22:28:42 +00:00
brain
a7d4746c00
Deal with ? substitution, we're at the point now where we can call the mysql_real_query function
...
(mysql_real_query takes char* and length params, mysql_query just takes char*, and cant deal with NULLs)
TODO after this: signal the main ircd thread that theres a result ready on a given db id, and to fetch that result and post it back to the caller
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4480 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 19:55:24 +00:00
brain
68712039b8
Seems to work to a point (dont use it, it wont actually execute a query yet)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4479 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 19:30:29 +00:00
brain
b525225088
This now compiles, i gaurantee it doesnt work :P
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4478 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 18:39:05 +00:00
brain
221934729e
Change includes, use --libs_r rather than mysql_config --libs, we want re-enterant libs for pthreads
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4477 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 17:56:07 +00:00
brain
2010b514a6
Move this to m_mysql.cpp - dont even bother reading this yet its unchanged from m_sql
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4476 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 17:48:46 +00:00
om
6016b09a4a
Set the query string in the SQLquery to the copy with parameters substituted in.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4475 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 17:18:39 +00:00
om
e491d292c0
Implemenet parameter substitution (damn sexy if you ask me..)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4474 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 12:39:42 +00:00
om
cbaa580e46
ParamL needs to be a deque rather than a vector *thwap*
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4473 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 12:05:05 +00:00
om
95ac8e2fd3
Add tiny perl script to detect version and pass an appropriate -D to gcc. Make m_pgsql #ifdef around PQescapeStringConn() which is only available in PostgreSQL >= 8.1.4
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4472 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 11:42:55 +00:00
om
2c6c072c1f
API header and client module updates for new multi-parameter query request. Needs proper implementation in m_pgsql and documentation
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4471 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 08:37:42 +00:00
om
7fcb5797a6
Slight tidyup: type name = type(args); --> type name(args);
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4470 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21 00:48:42 +00:00
om
3ebfd76d88
Make SQLexception inherit ModuleException
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4468 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 19:06:31 +00:00
brain
eb38bafc62
Change formatting
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4467 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 18:27:58 +00:00
brain
28fcd23763
Add comments, remove debug, alter message in ./configure
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4466 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 18:26:09 +00:00
brain
6bfae0cd73
Fixed, no longer a memory leak (Thread leak)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4465 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 18:02:09 +00:00
om
3a7023f2c5
Updates, should be able to safely unload client modules with queries in progress now...
...
Ideas on how to test this welcome ;p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4464 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 17:47:15 +00:00
om
65ac369cd6
Okay, working PostgreSQL module, API header and example client module in /extra/, enjoy
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4463 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 17:19:16 +00:00
brain
1cfd1e693a
Someone please take a look at this and tell me why a thread doesnt free itself like it should when it exits, freeing the ram
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4462 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 17:16:08 +00:00
brain
dcd533e8e6
Move a confusing debug message within its conditional
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4461 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 16:52:08 +00:00
brain
57bba0c632
Make threaded dns stable by placing some mutexes around some stl stuff (this really needs lots of testing now)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4460 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 16:48:44 +00:00
brain
cd14664902
Threaded dns stuff - im going to try and make this stable in 1.1
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4459 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 16:11:50 +00:00
brain
5e0d86bc0e
Extra sanity checks
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4457 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 16:08:00 +00:00
om
9fbcea26f1
Okay, this is getting towards working now. It just needs the API finishing...everything in the backend part seems to be working okay
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4456 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20 13:15:43 +00:00
brain
f87b555a87
Removed all that lastcreate and wantclose craq from dns.cpp (WHAT THE FUCK WERE THE FIREDNS GUYS SMOKING)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4454 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 21:46:00 +00:00
brain
9221bcb5a9
Stability fix
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4453 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 20:17:26 +00:00
brain
69ae63ecd2
Change stats recv/send to double, so they can hold truly massive numbers of transferred bytes (they would overflow after about 6 weeks on a busy net otherwise)
...
Fix some warnings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4450 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 15:03:26 +00:00
brain
250c92805c
Change counters to unsigned long to prevent overflow to negative counts
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4449 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 14:56:47 +00:00
brain
592c13592a
Increase size to unsigned long
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4448 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 14:54:18 +00:00
brain
a47ea856ed
Completely remove need for memset.
...
When we uniq_id++, we can wrap to 0 theoretically after 4 billion output messages, HOWEVER, when we do, 0 will be a valid comparison within the array :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4447 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 14:52:39 +00:00
brain
e0a8c7d7d2
Set 'copyright' property on all items, informational only, effects nothing
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4446 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 13:55:06 +00:00
brain
dae24856ed
Change properties
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4445 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 13:52:09 +00:00
brain
eff5563892
Test change
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4444 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 13:50:16 +00:00
brain
40b67389a9
Add #include <sys/select.h> to select engine, we probably need it
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4443 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 13:29:06 +00:00
brain
4f5ef4c1ae
Fix MOTD
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4442 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 13:12:03 +00:00
brain
e5328261b0
Whoops, forgot SocketEngine::SocketEngine() gets called recursively from *Engine::*Engine() (where * is the type being built)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4441 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 12:58:57 +00:00
brain
67daf0546b
Fix typo in kqueue engine
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4440 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 12:54:56 +00:00
brain
3a6885d6a1
* Seperate out socket engines into derived classes of SocketEngine.
...
* Add a classfactory SocketEngineFactory to create a new socketengine of the configured type
* Implement configure hax to compile only the required socketengine and the base class
* Eliminates ugly defines, and is more in line with C++ ways
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4439 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 12:51:21 +00:00
brain
e8c920ce01
Change size of already_sent from char to int to work with uniq_id value
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4438 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 11:13:15 +00:00
brain
b137f2564c
Speed up writecommon, writecommon_noformat, writechannel, etc (by quite a bit) - eliminate 99.99999999999% of the memsets
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4437 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 11:00:55 +00:00
brain
deccd86592
Special checking for muppet providers that make their reverse resolution resolve back to the same reverse resolution.
...
*WHY* DO PEOPLE IN CONTROL OF THE RDNS RECORDS EVEN *ALLOW* SUCH LUNACY?!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4436 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 10:47:46 +00:00
brain
8f1f87ce10
Fix motd with new buffering
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4434 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19 09:16:45 +00:00
brain
983f18f834
Tried to implement sprintf that returns std::string of any size, realized it would scale like unreal scales to ircnet (e.g. it wouldnt!) so took it back out.
...
Moved chop() functionality into userrec::AddWriteBuf and make it nicer (no strlen)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4433 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-18 21:43:37 +00:00
brain
69f280701b
Tweaks for nonblocking dns
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4432 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16 21:28:09 +00:00
brain
93a796af16
Improved connect time by not referencing the hash for each user value, store a temp pointer
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4431 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16 21:23:27 +00:00
brain
51fb508494
Ignore empty lines, don't try and process them as commands
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4430 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16 20:13:40 +00:00
brain
6e25565827
Only attempt forward lookup if the user still exists
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4428 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16 20:01:16 +00:00
brain
09dbf0f948
Remove some casts
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4427 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16 19:58:25 +00:00
brain
d8fbbeafdf
Craq removal service, at your service
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4426 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16 19:54:17 +00:00