Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: IO::Socket::INET, quake, and me...

by t0mas (Priest)
on Apr 30, 2001 at 12:06 UTC ( #76559=note: print w/replies, xml ) Need Help??

in reply to IO::Socket::INET, quake, and me...

I think the kkrcon program (a perl script) does exactly what you try to accomplish. Have you checked it out?

Good luck and happy gaming.

/brother t0mas

Replies are listed 'Best First'.
Re: Re: IO::Socket::INET, quake, and me...
by Rhandom (Curate) on Apr 30, 2001 at 18:02 UTC
    I wouldv'e replied to the original node but I think the html was messed up.

    You may want to look at IO::Socket::INET. You are connecting using a UDP connection, but you are trying to communicate with it as if it was a TCP connection. Quake needs the UDP. To communicate with UDP, try the following:

    my $buffer = undef; $remote_sock->send("My stuff to send",0); $remote_sock->recv($buffer,4096,0); # SOCK, LEN, OFFSET # $buffer will now contain the response

    Hope that helps...

    my @a=qw(random brilliant braindead); print $a[rand(@a)];
Re: Re: IO::Socket::INET, quake, and me...
by snafu (Chaplain) on Apr 30, 2001 at 17:44 UTC
    No! I didn't know it existed! But I will certainly check it out! Thank you very much. (I searched everywhere for this kind of script. I must not have used the correct search keywords)


    - Jim

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://76559]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2018-02-22 19:15 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (298 votes). Check out past polls.