Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by t0mas (Priest)
on Apr 30, 2001 at 12:06 UTC ( [id://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)

    Thanks!

    ----------
    - Jim

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://76559]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-28 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found