Jan Vidar Krey
74ca5a0a33
Cleaned up command handling code, by splitting into multiple files.
2012-05-01 20:15:49 +02:00
Jan Vidar Krey
b24d4b85cd
Split out the command buffer code to a generic buffer.
2011-12-21 13:53:53 +01:00
Jan Vidar Krey
f34f0328a3
Removed the PLUGIN_SUPPORT code, since plugin support is now mandatory.
2011-12-21 10:48:37 +01:00
Jan Vidar Krey
68dc3cafc7
Removed unused files.
2011-12-19 10:51:45 +01:00
Jan Vidar Krey
318163c066
Added support for dynamic commands.
...
Dynamic commands are user commands that can be added dynamically to
the hub by a plugin.
The example plugin (mod_example.c) adds a !example command that when
invoked send a message to the user who invoked it.
2011-12-09 10:29:50 +01:00
Jan Vidar Krey
bf4ad5624a
Visual Studio compile fixes.
2011-01-12 16:58:18 +01:00
Jan Vidar Krey
9b57279628
Many Visual C++ compile warnings and errors fixed.
2011-01-03 00:03:07 +01:00
Jan Vidar Krey
1af7e26c52
Moved flood control stuff to the util package.
2010-08-11 22:46:06 +02:00
Jan Vidar Krey
56e5557146
Cleaned up the credentials handling, and made it ready for plugins.
2010-07-12 19:05:50 +02:00
Jan Vidar Krey
ccb318547d
Started using new file reader tokenizer.
2010-07-10 03:36:47 +02:00
Jan Vidar Krey
aa26052479
Misc plugin work
...
* Fix crash when unloading plugins.
* Fixed plugin loader and plugin unload handler.
* Added a new example plugin: mod_logging which logs users logging in and out of the hub to stdout.
2010-06-29 15:40:19 +02:00
Jan Vidar Krey
ccaa4860b4
Started working on the plugin configuration and loader code.
...
The example plugin works, but does not do anything.
2010-06-13 19:34:20 +02:00
Jan Vidar Krey
07d4e4470c
More work on the plugin API.
2010-06-06 16:19:59 +02:00
Jan Vidar Krey
ed53034ad5
Added plugin loader code, merely a wrapper around dlopen() and friends.
2010-05-30 23:33:06 +02:00
Jan Vidar Krey
8815118fde
Added flood control support.
...
This closes bug #79 : Flood control, and rate limits
2010-04-05 16:01:07 +02:00
Jan Vidar Krey
f54e8dbbba
Moved the timeout code to where it belongs, along with the network backend code.
2010-01-26 22:55:08 +01:00
Jan Vidar Krey
f84073f7cc
Various fixes for epoll handling without libevent.
...
This should take care of most compile issues as well as busy loops caused by unhandled recv() calls returning 0 and general cleanups.
2010-01-19 17:52:58 +01:00
Jan Vidar Krey
6a4b9c58f4
Work on removing libevent completely as a mandatory dependency.
2010-01-07 20:55:13 +01:00
Jan Vidar Krey
7472e9ae4a
Removed some old unused macros.
2009-10-06 15:53:24 +02:00
Jan Vidar Krey
f076c67c33
Added a configurable listen() backlog (defaults to: server_listen_backlog=50)
2009-10-06 15:50:42 +02:00
Jan Vidar Krey
5203ecdadc
Split uhub.h
2009-08-28 16:18:18 +02:00
Jan Vidar Krey
1af613d9ce
Fixed printf issues with size_t. Since Windows do not support %zu we have to use %Iu there instead.
...
Solved that with an ugly but needed macro.
2009-08-20 10:44:44 +02:00
Jan Vidar Krey
cd389742e6
Solaris fixes.
2009-08-06 23:15:55 +02:00
Jan Vidar Krey
27c71a75ee
Hook in the new connection work, also implemented some missing bits
...
and pieces of SSL.
SSL seems to work at some basic level, and is largely untested.
2009-08-03 17:25:52 +02:00
Jan Vidar Krey
4931dc5dcb
Added call functionality to figure out the maximum number of sockets (file descriptors) available on system.
2009-08-02 22:28:34 +02:00
Jan Vidar Krey
653cfb285e
Started working on abstracting the connection data away from the user struct.
2009-08-02 21:37:55 +02:00
Jan Vidar Krey
6e5d28c2d4
Rework logging code to be able to turn it off completely.
2009-07-26 01:38:38 +02:00
Jan Vidar Krey
36a07e3f7e
Reorganized sources slightly.
2009-07-25 20:05:27 +02:00
Jan Vidar Krey
3db2ec5e22
Added macros that can possibly make it easier to optimize functions using forced inlining and regparm.
2009-07-09 17:01:30 +02:00
Jan Vidar Krey
ea3cd1bd90
Work on optimizing send(), to use fewer send function calls.
2009-06-21 14:21:34 +02:00
Jan Vidar Krey
8f7cc0b7a7
Fixed MAX and MIN macros.
2009-05-28 01:45:36 +02:00
Jan Vidar Krey
9309c925d3
Started working on new pipelines for sending and receiving data.
...
This will be useful for the next step; SSL.
(NOTE: This code is very chatty about debug messages)
2009-05-19 22:57:50 +02:00
Jan Vidar Krey
d4c8b657bf
Better "!stats"; can display peak and current bandwidth usage.
...
Network stats are now updated every minute, so that we have them handy for
printing in logs, or by issuing the !stats command.
Note: this checkin disables the once-per-hour stats logging.
I do not know wether or not that is useful functionality.
2009-03-04 18:36:45 +01:00
Jan Vidar Krey
ac56e7a5b9
First git commit.
2009-02-19 17:14:09 +01:00