|
LAN-Serverlist
#172763
12/14/07 14:50
12/14/07 14:50
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Hi! How can I create a list, which shows me the opened gameservers in lan like in cs? I don't need any code, I only want to know how it should be done... Thanks for your answers!
Dark_Samurai
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: LAN-Serverlist
[Re: john_rain]
#172767
01/05/08 14:38
01/05/08 14:38
|
Joined: Aug 2005
Posts: 1,012 germany, dresden
ulf
Serious User
|
Serious User
Joined: Aug 2005
Posts: 1,012
germany, dresden
|
they way to do it is via udp broadcast.
if you want to request a list, send a udp broadcast packet to the network called 'request'. the servers wich listen get the broadcast 'request' and immidiately or after a small delay, broadcast their information 'myserverip:port,map,players,freeslots...' back to everyone. this way the client that send the request can again listen for the serverinformation and fill the list.
i doubt this is possible with a6, maybe it works with a7 if you include sockets.h if not you will have to write a .dll or use an external starter program for this purpose.
correct me if iam wrong...
|
|
|
Re: LAN-Serverlist
[Re: ulf]
#172768
01/06/08 16:20
01/06/08 16:20
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Ok thanks for that informations. So I need a plugin which can send/receive such a udp broadcast? Is there already one out there or do I have to write it?
Dark_Samurai
Last edited by Dark_samurai; 01/06/08 16:20.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: LAN-Serverlist
[Re: Dark_samurai]
#172769
01/10/08 10:35
01/10/08 10:35
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Do I need c# for such a plugin or can it be written in c++? Is it much effort to write such a plugin? Do you know any good toturials for writing such a udp broadcasts? Thanks!
Dark_Samurai
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: LAN-Serverlist
[Re: broozar]
#172771
01/16/08 07:15
01/16/08 07:15
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Quote:
allowing only one game per lan is no option for you?
No!
Someone is making a plugin for me, wich allows to send/broadcast UDP-Packages. If there is someone else interested in such a plugin PM me, please.
mfg Dark_Samurai
Last edited by Dark_samurai; 01/16/08 07:15.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: LAN-Serverlist
[Re: Dark_samurai]
#172772
01/18/08 22:00
01/18/08 22:00
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
Serious User
|
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
Hi Dark_Samurai, einen einzelnen server im lan (broadcasting) findet GSTNet so: Code:
GSTNet_StartClient("255.255.255.255",2300,-0.1);
bei mehreren servern ist mehr aufwand beim nachrichten handling zwischen dem client und den servern nötig. z.B. Code:
GSTNet_ClientSend(0, GetServerProperties, ""); // request must be handled on server side
nach auswahl des richtigen servers muß der client gestopt werden und mit der server ip gestartet werden Code:
GSTNet_Disconnect(0); wait(-0.5); GSTNet_StartClient(sChoosenServerIP,2300,-0.1);
Andreas GSTools - Home of GSTScript 0.9.8: lua scripting for A6/7/8 GSTNet 0.7.9.20: network plugin for A6/7/8 GSTsqlite 1.3.7: sql database plugin for A6/7/8 3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
|
|
|
|