I’m working on a buddytracking system for ET, but i simply dont succeed in getting the infostring from the server …
I tried lots of things like this (perl script)
#!/usr/bin/perl
use IO::Socket;
my $socket = new IO::Socket::INET->new(
PeerAddr => '62.75.215.176',
PeerPor => '27960',
Proto => 'udp',
);
die "Unable to open connection: $!
"
unless defined $socket;
print $socket "allinfo";
eval {
while ($socket->recv($reply, 1024)) {
print $reply;
}
};
close($socket);
but he simply wont give me a response.
I suppose the allinfo-thingy and all the other things i tried simply dont do the job. My rcon prog works very well, but to make it work u have to submit this string
\377\377\377\377rcon $password $command
(the \377 stands for a specific ANSI-Char)
Any ideas how i can make the server send me the infostring?
THX4YA’HELP!