|
Server Help Community forums for Subgame, ASSS, and bots
|
Author |
Message |
Maucaub Newbie
Joined: Apr 15 2004 Posts: 12 Offline
|
Posted: Mon Aug 30, 2004 8:54 pm Post subject: PATCH: VIE-style billing support (billing_ssc.c) |
|
|
|
|
All of you who have been frustrated by the inability to connect to the billers out there will be happy with this patch. In addition to the VIE encryption issue (http://forums.minegoboom.com/viewtopic.php?t=3424), there's a small bug in the billing module state machine that prevents it from properly connecting to the billing server.
/--- Begin Techno-Babble ---/
Specifically, for those few in-the-know, the billing module enters the s_waitlogin state and then awaits ANY response from the biller to confirm the connection. However, the VIE protocol dictates that the biller will only issue messages to the zone after the zone initiates a query. Given an empty zone and no other zones on the biller initiating net-wide messages, the only way the biller will send a message B2S is after a player login attempt. Unfortunately, all player login attempts were blocked while in the s_waitlogin state. Hence, the connection to the biller would either time out or be triggered as unconnected as soon as a player attempts to login. This patch merely allows the zone to initiate a player login request to the biller during the s_waitlogin state, after which point a response will be sent to the zone and the state will propagate into the proper s_loggedin state.
/--- End Techno-Babble ---/
I've attached both the diff patch (diff -u) and the complete file, for those who don't have patch capability. The patch is derived from the 1.2.0 source distribution.
billing_ssc_patch.zip - 9.59 KB
File downloaded or viewed 32 time(s)
|
|
Back to top |
|
|
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Tue Aug 31, 2004 1:39 am Post subject: |
|
|
|
|
This has been fixed in my working copy for a while, though it was right after 1.2.0, so it's not in a public version yet. I chose a slightly different fix: the state moves to s_loggedin after 5 seconds in s_waitlogin with disconnection. The net effect should be just about identical.
|
|
Back to top |
|
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
Software by php BB © php BB Group Server Load: 782 page(s) served in previous 5 minutes.
|