• Welcome to Valhalla Legends Archive.
 

Simple dll plugins

Started by warz, February 28, 2005, 12:19 AM

Previous topic - Next topic

warz

I understand a lot of people use dll files as their plugins for their bot. Similar to skywings bot, except without any win32 api, simply linux console bot, how is loading dll plugins done? Skywings thing seemed rather indepth when i looked into it for my win32 bot. Just lookin for a brief description or website link that might help out some.

Thanks

Newby

Probably belongs in general programming. =P

This was the first thing that came up in Google.
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

dxoigmn

Quote from: Newby on February 28, 2005, 12:20 AM
Probably belongs in general programming. =P

This was the first thing that came up in Google.

Did you actually click that link?

warz

Nevermind, found some useful functions.

Quote
> man dlopen
DLOPEN(3)           Linux Programmer's Manual           DLOPEN(3)

NAME
       dladdr, dlclose, dlerror, dlopen, dlsym, dlvsym - programĀ­
       ming interface to dynamic linking loader

SYNOPSIS
       #include <dlfcn.h>

       void *dlopen(const char *filename, int flag);

       char *dlerror(void);

       void *dlsym(void *handle, const char *symbol);

       int dlclose(void *handle);

DESCRIPTION
       The four functions dlopen(), dlsym(), dlclose(), dlerror()
       implement the interface to the dynamic linking loader.

Thanks.

iago

You should have a look at how Gaim loads plugins.  It's nice and clean, and I got a lot of ideas for my Java bot from them.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Newby

Quote from: dxoigmn on February 28, 2005, 12:22 AM
Quote from: Newby on February 28, 2005, 12:20 AM
Probably belongs in general programming. =P

This was the first thing that came up in Google.

Did you actually click that link?
Nope, damnit.

BugMeNot had no passwords for it either. Lame. :(
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.