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: TCP Billing on Windows

 
Post new topic   Reply to topic Printable version
 View previous topic  hs_antiwarp Post :: Post PATCH: Datatype portability improveme...  View next topic  
Author Message
Maucaub
Newbie


Joined: Apr 15 2004
Posts: 12
Offline

PostPosted: Mon Aug 30, 2004 9:07 pm    Post subject: PATCH: TCP Billing on Windows Reply to topic Reply with quote

As I logged in to post the other patches, I noticed 2dragons' post (http://forums.minegoboom.com/viewtopic.php?t=3418) about the TCP billing module not working properly. Disclaimer: I have not spent alot of time working with the TCP billing protocol/module (yet), so there may be still other bugs present. However, this patch addresses the issue of the zone being unable to establish a connection on Windows. There may yet be a better solution, but at least for now this patch will do the job.

@Grelminar: Windows sockets DO NOT use errno to report errors. The socket functions report SOCKET_ERROR, but the specific error must be retrieved using WSAGetLastError(). Since the sockets are set to be non-blocking, connect() returns SOCKET_ERROR and sets WSAEWOULDBLOCK. This is the windows equivalent of the EINPROGRESS check for *nix that you've already included.

I've attached both the diff patch (diff -u) and the complete file, for those who don't have patch-ability on Windows. The patch is derived from the 1.2.0 source distribution.




billing_patch.zip - 8.12 KB
File downloaded or viewed 51 time(s)
Back to top
View users profile Send private message Add User to Ignore List Send email
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: 645 page(s) served in previous 5 minutes.

phpBB Created this page in 0.448466 seconds : 28 queries executed (82.8%): GZIP compression disabled