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

Re: Sending a low-level query using sockets? (A confused newbie)

by EvanK (Chaplain)
on Mar 01, 2007 at 15:55 UTC ( [id://602706]=note: print w/replies, xml ) Need Help??


in reply to Sending a low-level query using sockets? (A confused newbie)

i cant really help with the socket issue (or whether sockets are suitable for your case), but you might next time want to include a link to the protocol specification. it might help those who are trying to assist you.

Update: I think Fletch hit it on the head, it doesnt seem to end its messages with newlines, but rather with null characters (\0).

Update 2: Also, my (limited) experience with game servers makes me curious...are you sure you have the right port? The game port (where you connect to play) is often different from the query port (where you connect to get server info).

__________
Systems development is like banging your head against a wall...
It's usually very painful, but if you're persistent, you'll get through it.

Replies are listed 'Best First'.
Re^2: Sending a low-level query using sockets? (A confused newbie)
by Ojosh!ro (Beadle) on Mar 01, 2007 at 16:24 UTC
    Whee!

    Can that be solved by setting the $/ to the correct character?

    my($s,$b,@c,@b)=qw(0 0 5C 5F 2F 20);while(int($s+.45)<2){$b[0].=chr(hex($c[int($s+.45)]));$b[1].=chr(hex($c[int($s+2.45)]));$s+=.55}while(1){print $b[$b];$b--;$b*=$b}#Fishnets

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found