Go Back   Seriously! Forums > Gaming > Serious Sam Classic

Serious Sam Classic Discuss anything and everything relating to Serious Sam Classic and its 2 parts; The First Encounter and The Second Encounter.

Thread Tools Search this Thread Rate Thread Display Modes
Old 09-26-2016, 03:56 AM   #1  
Footballer Orc
Alex.'s Avatar
Joined: Jun 2011
Location: Russia
Alex. is offline
Post Multi master servers dedicated serverr

After the publication of the source code of version 1.10 I redid a dedicated server in C++ instead of assembler.
The version of C++ for games Serious Sam Classic The First Encounter 1.05 and Serious Sam Classic The Second Encounter 1.05 and 1.07 Here:

Master servers declared in code:

And also they declared as shell variables, so they can also be specified in Dedicated_startup.ini. Example:

To compile the required VC6 "with service pack 5 and processor pack" (To compile assembler routines).

how it works is very simple:
The routine in assembler reads an open socket from the address space engine:

The subroutine must be declared in the text of a C++:

After starting the server, we create a thread which will receive an open socket and send the heartbeat for a few master servers. The socket is nonblocking, so it can be used to send heartbeat on any of the master servers without any risk.
Just need to change the structure of socketaddr for other masters.

Created thread in a loop every millisecond 70707 gets an open socket, and sends a heartbeat to the master servers specified in the structure socketaddr.

At the moment, these versions of the servers are running on 42amsterdam around the clock. Everything is stable.

Last edited by Alex.; 09-26-2016 at 03:59 AM.
  Reply With Quote
Old 10-02-2016, 09:47 AM   #2  
Footballer Orc
Alex.'s Avatar
Joined: Jun 2011
Location: Russia
Alex. is offline
Default Re: Multi master servers dedicated serverr

Yes, with assembler I overreacted In this case, it is not required.
Best option:

...BTW - Result:

OpenSpy doesn't have a web statistics, but also works fine
  Reply With Quote
Old 10-02-2016, 06:12 PM   #3  
Louva-Deus's Avatar
Joined: Oct 2001
Louva-Deus is offline
Default Re: Multi master servers dedicated serverr

You should filter out most of the 42am servers...

Seriously... :|
  Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dedicated servers? Feelgood Serious Sam HD 18 11-30-2009 04:49 PM
Serious Sam 2 Dedicated Server Utility - Several dedicated servers??? Phat^Trance Serious Sam 2 11 11-15-2006 12:06 PM
Master servers for Quake3? Caid Game Talk 5 01-13-2002 04:12 AM
master servers taz Technical Support (SSC) 2 04-07-2001 01:12 AM

All times are GMT -4. The time now is 03:46 AM.