Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Multiplayer server list implementation question

Author
Message
Skywriter
16
Years of Service
User Offline
Joined: 27th Aug 2008
Playing:
Posted: 7th Dec 2014 10:16
Hi. Is there a way to make and maintain a list of active server ip's by dll or any other network command?

Sky. It's at my fingertips...
Webpage at http://skywriter.comuf.com
Ortu
DBPro Master
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 8th Dec 2014 00:05
You will probably want to have a static server which hosts post game and connection info to and clients retrieve said info from. There are lots of cheap/free web hosting/ dynamic DNS/ domain name services to set this up with.

Skywriter
16
Years of Service
User Offline
Joined: 27th Aug 2008
Playing:
Posted: 8th Dec 2014 10:45
Is there some info about this. Maybe a tutorial or something you can refer me to. Do i need some knowledge like php or other language?

Sky. It's at my fingertips...
Webpage at http://skywriter.comuf.com
Ortu
DBPro Master
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 8th Dec 2014 20:50
You can certainly do more with some server scripting like php and backed by a database like mysql, but you can get the job done with the file read write and ftp commands directly in dbpro.

Basically if someone starts hosting a game, the dbp program can write their IP to a file, ftp this to the server. When clients are looking for games they can connect to that server and look for an available host ip file, download it via ftp and read the ip from it.

If you do go with server scripting with php, asp.net, python or whatever, you can use the http commands in dbpro to send and receive the ip data without bothering with actual file transfers.

There are examples for ftp, http commands in the dbpro help documents and project example directories. You can also do a Google forum search for urlmon which has some helpful functions.

Login to post a reply

Server time is: 2025-05-11 22:27:04
Your offset time is: 2025-05-11 22:27:04