This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

queues

Old posts that have not been replied to for several years.
Locked
K
Kuulest

Post by Kuulest »

Hi,

I was just interested in how the Eggdrop queues for putmode, putserv, and puthelp work. I tried looking through the source code to try and find out, but this is all I could find:

Apparently, many of the source files and modules use the dprintf function to add items into the various queues. So, I looked for the dprintf function and found it in dccutil.c. A switch loops comes down to all the queue types:

case DP_SERVER:
case DP_HELP:
case DP_MODE:
case DP_MODE_NEXT:
case DP_SERVER_NEXT:
case DP_HELP_NEXT:
qserver(idx, buf, len);
break;

Now here's the question: Where is the qserver function? I can't seem to find it. Any ideas? Or does anyone know how all the queues work?
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

src/mod/server.mod/server.c

search for static void queue_server(int which, char *buf, int len)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Many functions within eggdrop, do not actualy come under there used name, they can sometimes get defined by macros (this is so under this situation)

To locate these macros, look for "#define" strings, with the function you require, the string after the macro name with show the try function name.
Locked