Autor Tema: networking dll of sandman for bennu  (Leído 7390 veces)

DCelso

  • Hero Member
  • *****
  • Mensajes: 3708
  • Karma: 180
networking dll of sandman for bennu
« en: Agosto 20, 2008, 07:12:42 am »
Hello to all.
Anybody have can use this dll in bennu wip 2?
In afirmative case. How?
Thanks.
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

l1nk3rn3l

  • Hero Member
  • *****
  • Mensajes: 2002
  • Karma: 257
« última modificación: Septiembre 22, 2008, 10:52:33 pm por l1nk3rn3l »

Sandman

  • Sr. Member
  • ****
  • Mensajes: 298
  • Karma: 48
Re: networking dll of sandman for bennu
« Respuesta #2 en: Septiembre 30, 2008, 11:14:16 am »
-- Sandman

blostec

  • Hero Member
  • *****
  • Mensajes: 745
  • Karma: 20
Re: networking dll of sandman for bennu
« Respuesta #3 en: Septiembre 30, 2008, 02:08:51 pm »
Great news Sandman, thanks for your work!

Sandman

  • Sr. Member
  • ****
  • Mensajes: 298
  • Karma: 48
Re: networking dll of sandman for bennu
« Respuesta #4 en: Noviembre 18, 2009, 03:24:47 pm »
And a new version for the current Bennu line. Don't know if anyone still uses this library, but it was an easy fix anyway.

* http://wiki.bennugd.org/index.php?title=DLL:Network.DLL
* 1.56 Win32 binaries, source and documentation

Changelog:
18-11-09: v1.56:
   Fixed functions export bug

-- Sandman

osk

  • Hero Member
  • *****
  • Mensajes: 516
  • Karma: 52
Re: networking dll of sandman for bennu
« Respuesta #5 en: Noviembre 18, 2009, 03:51:10 pm »
Thanks!
Can you tell us what improvements or extra functionalities this library has in front of Fsock, for example?

Ariel Yust

  • Jr. Member
  • **
  • Mensajes: 60
  • Karma: 3
  • ZOMG
Re: networking dll of sandman for bennu
« Respuesta #6 en: Noviembre 18, 2009, 04:04:04 pm »
THis dll works great with Bennu unlike in Fenix me and Ecko had many problems in the Dune project =P

shame there is no way to use UDP with that dll :(
Play  **Zombies On My Grass**  !  >:}

Sandman

  • Sr. Member
  • ****
  • Mensajes: 298
  • Karma: 48
Re: networking dll of sandman for bennu
« Respuesta #7 en: Noviembre 18, 2009, 04:39:31 pm »
Fsock is not easy for beginners. This dll is not as fast, but is easier in use. Some of the features that make it easier:
    * One command setup, another one for listening for connections (server) or one for opening a connection (client).
    * Sending and receiving of variables of all datatypes, graphics, files, whatever you want.
    * Download/upload meter, for measuring of speeds and totals.
    * Automatic message separation (separation string specifiable).

If you know how fsock works, stick with it, because it's faster and supports more than just TCP. But if you are not comfortable with sockets, this dll is nice. See the IRC chat tutorial for an example of how to create an IRC client with this dll.
-- Sandman

FreeYourMind

  • Hero Member
  • *****
  • Mensajes: 5643
  • Karma: 127
    • GECA soft
Re: networking dll of sandman for bennu
« Respuesta #8 en: Noviembre 18, 2009, 06:36:16 pm »
Fantastico, niet wetende dat zoiets bestond voor Fenix en Bennu :)

Windgate

  • Hero Member
  • *****
  • Mensajes: 2930
  • Karma: 124
    • TRINIT Asociación de Informáticos de Zaragoza
Re: networking dll of sandman for bennu
« Respuesta #9 en: Noviembre 18, 2009, 09:11:14 pm »
networking.dll...


Ok, I was trying with fsock last week and building a client-server with 2 clients handling 2D processes... I couldn't find a good protocol, the server blocked all time... I will try with networking, thanks.
Iván García Subero. Programador, profesor de informática, monitor de actividades culturales y presidente de TRINIT Asociación de Informáticos de Zaragoza. http://trinit.es

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12773
  • Karma: 375
Re: networking dll of sandman for bennu
« Respuesta #10 en: Noviembre 19, 2009, 02:55:27 am »
thanks sandman... where are yours fuckins karma??!!! you need visit more bennugd... ;)
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Windgate

  • Hero Member
  • *****
  • Mensajes: 2930
  • Karma: 124
    • TRINIT Asociación de Informáticos de Zaragoza
Re: networking dll of sandman for bennu
« Respuesta #11 en: Noviembre 23, 2009, 09:16:04 am »
Hi Sandman, im cheking the NETv1.54a tester and have some doubts...

It runs using the Fenix interpreter: It is just for Fenix or it must work with Bennu too?

Im trying to compilate the test using Bennu dlls, but i have the first error on:

   INCLUDE "Fenix.fh";

The file Fenix.fh doesnt exist on the test folder... And the following line is:

   INCLUDE "extra.inc";

And other .inc files doesnt exist...

I almost understand the rest of the code, but I want to know if it is/will be possible to build a program in Bennu by the beggining using your library. It looks great ;)

EDIT: Yeah, I could compile and run the example on the wiki, anyway if you can answer any of my questions it would be great, the wiki example is not as good as that "Fenix" sample :P

EDIT 2: I'm not a lucky man... I am trying to build a Bennu program from the beggining with network library, my first error comes when using net_init:

Código: [Seleccionar]
init_status = net_init ( 0 , 10 , 1 );
        IF ( init_status == NET_ERROR_ALREADYINIT )
exit ( "Error, libnetwork already initialized" );
ELSEIF ( init_status == NET_ERROR_INITIALIZATION )
exit ( "Error, libnetwork general initialization error" );
ELSEIF ( init_status == NET_ERROR_TOOFEWCONNS )
exit ( "Error, too few connections on libnetwork initialization" );
ELSEIF ( init_status == NET_ERROR_TOOMANYLISTENERS )
exit ( "Error, too many listeners specified on libnetwork initialization" );
ELSEIF ( init_status == NET_ERROR_NONE )
say ( "libnetwork initialized correctly" );
ELSE
exit ( "Unknown error on libnetwork initialization" );
END

I check all possible errors, but I always take a non specified value and get a "Unknown error on libnetwork initialization".

Im using libnetwork.dll v1.56 d18-m11-y2009 :'(
« última modificación: Noviembre 23, 2009, 09:51:44 am por Windgate »
Iván García Subero. Programador, profesor de informática, monitor de actividades culturales y presidente de TRINIT Asociación de Informáticos de Zaragoza. http://trinit.es

Sandman

  • Sr. Member
  • ****
  • Mensajes: 298
  • Karma: 48
Re: networking dll of sandman for bennu
« Respuesta #12 en: Noviembre 23, 2009, 12:25:37 pm »
Sorry, I can't find the complete code of that tester anymore. It included lots of other includes I used often. It can only run on the Fenix interpreter, it's a standalone program. Type "NET HELP" to get some help.

I highly recommend the IRC Chat tutorial. It's complete and works. It doesn't show all of the functionality, but it does show the basics. Try it out and we'll chat some. ;-)

Can your variable init_status take negative values? If not, then that's the problem. I think the DLL says the function returns a dword, but that should be an int.
« última modificación: Noviembre 23, 2009, 12:30:58 pm por Sandman »
-- Sandman

Windgate

  • Hero Member
  • *****
  • Mensajes: 2930
  • Karma: 124
    • TRINIT Asociación de Informáticos de Zaragoza
Re: networking dll of sandman for bennu
« Respuesta #13 en: Noviembre 23, 2009, 12:36:09 pm »
init_status is an int, im goig to try it with dword, but I think it will be the same

The IRC example is too complex for begineers, I just want 2 players (squares) to move on screen from remote location, that's all, but with a net_init error it goes bad :-\

Thanks, I keep trying.
Iván García Subero. Programador, profesor de informática, monitor de actividades culturales y presidente de TRINIT Asociación de Informáticos de Zaragoza. http://trinit.es

Sandman

  • Sr. Member
  • ****
  • Mensajes: 298
  • Karma: 48
Re: networking dll of sandman for bennu
« Respuesta #14 en: Noviembre 23, 2009, 12:37:24 pm »
Can you send me the code? Your email address is for MSN too?

EDIT:
net_init returns a wrong value, don't know yet why. However, it does initialize libnetwork correctly. Turn on debugging by enabling NET.consolereports:
Código: [Seleccionar]
NET.consolereports = 1;
You can continue as if it goes ok... looking at it now.

EDIT2:
Found it. That value is the processID of the network process that gets executed at initialization. It's not a real error, because every error is negative and positive values are allowed. Well that's the way I made the DLL. But I think it differs from the documentation, so I will fix it. Thanks!
« última modificación: Noviembre 23, 2009, 12:52:48 pm por Sandman »
-- Sandman