Files

> > CS2D > Lua Scripts > Lua BNet library (Windows only)
Files overviewCS2D overviewLua Scripts overview

English Lua BNet library (Windows only) >

11 comments858 kb, 446 Downloads

old Lua BNet library (Windows only)

Starkkz
Moderator Off Offline

This script is based on BlitzMax's BNet module, so it uses the same functions for sockets in Lua. Yet just created this for windows operating system.

Spoiler >


The DLL is writen in BlitzMax (using makedll bin) and requires another modules to be compiled, so I choose to not to give the source code.

You can find in internet some examples of BNet module, but I added an example of a TCP server in the file.

HOW TO USE?
After installing the DLL file in your CS2D folder, you have to add this to your script.
Quote
libInit = package.loadlib("the path to the dll","init")
libInit()


for example
Quote
libInit = package.loadlib("lib/socket.dll","init")
libInit()


Errors
If you find any error, please send me a private message.

Credits to Vertex for BlitzMax's BNet module.

Comment & subscribe to my Facebook page
edited 4×, last 21.10.12 01:45:45 am
Approved by Seekay

Download Download

858 kb, 446 Downloads

Comments

11 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Starkkz
Moderator Off Offline

@user mafia_man: Yea, I got them both. But it isn't that easy, BlitzMax doesn't support building DLLs so I had to find a command line for windows, now I have to do the same but for Linux (.SO Files)

old

Infinite Rain
Reviewer Off Offline

WELOLOLO I like it :3
I like it!

old

mafia_man
User Off Offline

To compile it for Linux OS you need to compile it on linux with linux version of blitz max.
I like it!

old

Starkkz
Moderator Off Offline

Still, there are VDS servers based on windows.
I made it if someone needed it, but I'm trying to search a way to compile a .so file for the Linux OS.

old

oxytamine
User Off Offline

Windows sucks. But file is good (I think).

old

tom282f3
User Off Offline

I dunt care I luv Windows.
I like it!

old

Infinite Rain
Reviewer Off Offline

Yeah, as DannyDeth said
Lot of servers is running in linux.
I like it!

old

doroemon
User Off Offline

Nice job,I like it~!
I like it!

old

DannyDeth
User Off Offline

Lol, you may as well not bother uploading this kind of stuff if it is Windows-specific. I'd say at least 95% of CS2D servers are running on top of Linux, so no server could possibly use this.
To the start Previous 1 Next To the start