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

Windgate

  • Hero Member
  • *****
  • Mensajes: 2930
  • Karma: 124
    • TRINIT Asociación de Informáticos de Zaragoza
Re: networking dll of sandman for bennu
« Respuesta #30 en: Diciembre 04, 2009, 09:57:46 pm »
Thats good Sandman, I don't have that error now... But I have a new problem.

The new clients keep only making Outgoing conections, but the program is made to have both, in and out, server communicates with all clients.

It is rare, I am tired to keep programming now, here is the link of the current version, /prg/multi_server.prg has the new server code, is a very simple protocol.

DOWNLOAD: http://trinit.es/DescargaDirecta/BennuDLL/NetworkTest/Windgate's%20Network%20Test%200.0.2.zip

Note that i DONT want to have a multiplayer game, I am only trying to have communication with many clients, the protocol is not ready to have many clients working moving on the screen, only is ready to communicate with them.

I an working on a local machine with many clients using the same port, could ir be the reason for the current problem?

Thanks a lot again and again Sandman :P
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 #31 en: Diciembre 05, 2009, 01:46:08 am »
Fixed: http://wiki.bennugd.org/images/1/14/Libnetwork-v1.59-win32.zip
Linux version soon, or on request.

I'm not happy with this DLL. I tried to mimic the frame behaviour of Bennu, but that just plainly sucks if you ask me. I'll be making a new one in the future, one with events, UDP and some nice tricks I have in mind.
-- Sandman

Windgate

  • Hero Member
  • *****
  • Mensajes: 2930
  • Karma: 124
    • TRINIT Asociación de Informáticos de Zaragoza
Re: networking dll of sandman for bennu
« Respuesta #32 en: Diciembre 05, 2009, 12:12:45 pm »
I like the simplicity of this dll, it has some "weird" things but is really better than the sockets one.

Trying your fix, thanks, but, which are the changes?
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

Phoenix

  • Jr. Member
  • **
  • Mensajes: 83
  • Karma: 7
Re: networking dll of sandman for bennu
« Respuesta #33 en: Enero 26, 2010, 12:42:31 pm »
Ok! Lets see...

Im testing out this network dll. Seems really more easy to use for a non-pro socket users.

Right now, Im programming the classic "Pong" arcade for play online, but seems Im not doing it properly. Im using a server between 2 clients to be able to communicate them, I mean, both clients get online on the server and the server give them the signal to start the game. Each movement from clients is sending to the server and the server sends the info back to the clients.

The movements from clients works really properly and syncronized, at least I think so. The problem comes out when I try add a new process called "ball". I dunno how really can syncronize it on both clients. I tried sending diferent kinds of messages to the server but not working at all.

Working good now, but the ball got de-syncronized sometimes...

Sandman, I would be really pleased If you can check it out. Im sure you will find more ideas to do that the ball works properly!  ::)

Thanks!  

Link: http://www.mediafire.com/?zty22jzfz2z

Last version : http://www.mediafire.com/?mulnmtaqmmm

« última modificación: Enero 26, 2010, 09:54:06 pm por Phoenix »