Page 1 of 1

Make a Java module ? possible ?

Posted: Mon Feb 12, 2007 2:33 pm
by k2r
Hi, i'm a beginner in ircd but i have some knowledge in java. My question is : its possible to make a module for unrealIRCD in java language.

Will be great if you have a solution for this.

Thanks.

Posted: Mon Feb 12, 2007 4:44 pm
by Jobe
At present Unreal modules can only be written in C

Posted: Tue Feb 13, 2007 12:39 am
by Grunt
In the same way you can't use Pascal code in C, or C code in Basic, you can't use Java code in C.

Anyway, the syntax in Java is very similar to C, so you shouldn't have a problem understanding how modules work. I suggest downloading any Unix version of the provided modules, and take a look at the code. Many of the functions are self-explainatory (for example: IsOper(sptr) or send_to_one()) and some are commented.

Posted: Tue Feb 13, 2007 10:44 am
by k2r
I know used directly java directly in C is not possible. I only want to know if a solution like interface a special DLL of unreal with JNI was possible or ...

Ok so, if i want unreal plugin, need C code.

Thanks for this quick response.