ACR Protocol?
2012-04-06, 05:07 PM
#1
Question  ACR Protocol?
I'm writing a small check server script in PHP and do not know what the ACR protocol is? I have tried udp://, http:// acr://(I know seems stupid) but none of those work. Any ideas? Still on AC protocol?

Still alive in 2021. Wish you all the best and I'll drop in every now and again.
Post Reply Quote this message in a reply
2012-04-06, 06:07 PM
#2
RE: ACR Protocol?
It's UDP...

Read the old master-server code at https://sourceforge.net/projects/assaultcuber-ms/files/

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2012-04-06, 06:27 PM
#3
RE: ACR Protocol?
I have tried UDP and failed, seen the MS code, tried to fix my script, just can't, here it is.
PHP Code:
<title>Server Status</title>
<
p>This page is for my serversgaming, and more.</p>
<?
php
$ip 
"udp://127.0.0.1"
$port 280
if (! 
$sock = @fsockopen($ip$port$num$error200)) 
echo 
'<B><FONT COLOR=red>Offline</b></FONT>'
else{ 
echo 
'<B><FONT COLOR=lime>Online</b></FONT>'
fclose($sock); 

?>

Still alive in 2021. Wish you all the best and I'll drop in every now and again.
Post Reply Quote this message in a reply
2012-04-06, 07:41 PM
#4
RE: ACR Protocol?
You have to send 1 non-null byte to the address @ port + 1.
Example:
Send to (udp://addrSadport+1)) anything that isn't "\0"
Check for response with fread.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply


Forum Jump: