Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
PATCH: VIE-style billing support (billing_ssc.c)

 
Post new topic   Reply to topic Printable version
 View previous topic  PATCH: Datatype portability improveme... Post :: Post PATCH: VIE encryption (enc_vie.c)  View next topic  
Author Message
Maucaub
Newbie


Joined: Apr 15 2004
Posts: 12
Offline

PostPosted: Mon Aug 30, 2004 8:54 pm    Post subject: PATCH: VIE-style billing support (billing_ssc.c) Reply to topic Reply with quote

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 31 time(s)
Back to top
View users profile Send private message Add User to Ignore List Send email
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Tue Aug 31, 2004 1:39 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Custom Projects All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 656 page(s) served in previous 5 minutes.

phpBB Created this page in 1.386895 seconds : 29 queries executed (97.4%): GZIP compression disabled