Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: UnderCover on November 19, 2003, 03:14 PM

Title: Pings with Telnet or BNLS
Post by: UnderCover on November 19, 2003, 03:14 PM
Is there a way to ping someone through BNLS or Telnet?
Title: Re:Pings with Telnet or BNLS
Post by: MyndFyre on November 19, 2003, 03:28 PM
Oh I don't know, did you maybe try TCP/IP?!?!?

Telnet is a protocol, but it's application-layer-level IIRC.  BNLS isn't even a protocol, it's a server that conforms to a specific protocol.

Understand that there are seven layers in the OSI networking model (this is really making me stretch my memory...  I think I took the networking essentials class four years ago): Application (top-most), Presentation, Session, Transport, Network, Data-Link, Physical.  TCP/IP works over the Transport layer IIRC, and so if you want to ping, you need to implement the higher levels of the ping protocol.

See http://www.codeguru.com/network/ping.shtml for more info.
Title: Re:Pings with Telnet or BNLS
Post by: UnderCover on November 19, 2003, 03:33 PM
lol i meant ping battle.net players, and i also meant tcp, thats wut i use to connect bnet for information.

;D
Title: Re:Pings with Telnet or BNLS
Post by: UnderCover on November 19, 2003, 03:42 PM
ok thx  

are binary strings like 0x05 or something?

i know binary is 010100101

and strings are like a sentence

but im not sure what they are when connected together
Title: Re:Pings with Telnet or BNLS
Post by: Banana fanna fo fanna on November 19, 2003, 03:44 PM
Is this a joke?
Title: Re:Pings with Telnet or BNLS
Post by: UnderCover on November 19, 2003, 03:45 PM
lol
Title: Re:Pings with Telnet or BNLS
Post by: MyndFyre on November 19, 2003, 04:04 PM
Would you like everything spelled out for you?

In a computer system, everything is made up of little electronic switches, either represented by a transistor or a charge stored inside of a capacitor.  A charge represents a TRUE value, or 1, and a lack-of-charge represents a FALSE value, or 0.  When we combine many, many of these, we can form a binary number system.

A shorthand for binary is hex, or base-16.  What can be represented as four binary digits (say for example, 1001) can be represented as a single hex digit (with that example, 9).  Thus, we use hex numbers as shorthand when we're describing packet data.  Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.  On a side note, C-based programming languages use the expression "0xNN", where N is a hex digit, to indicate that a numeric literal is hexadecimal at compile-time.

C'mon dude, I don't believe you know much at all about programming a database if you don't know this basic stuff.
Title: Re:Pings with Telnet or BNLS
Post by: Grok on November 19, 2003, 04:10 PM
Quote from: Myndfyre on November 19, 2003, 04:04 PMIn a computer system, everything is made up of little electronic switches, either represented by a transistor or a charge stored inside of a capacitor.  A charge represents a TRUE value, or 1, and a lack-of-charge represents a FALSE value, or 0.  When we combine many, many of these, we can form a binary number system.

The binary number system existed even before transistors and capacitors.
Title: Silly nit to Myndfyre
Post by: Kp on November 19, 2003, 04:10 PM
Quote from: Myndfyre on November 19, 2003, 04:04 PM
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.
Yes, it would.  By convention, a leading 0 indicates octal unless some other indicator is present (such as a trailing 'b', but that can be confused with hex - heh).  So, 01010000 (octal) would be 0x41. ;)
Title: Re:Silly nit to Myndfyre
Post by: iago on November 19, 2003, 04:20 PM
Quote from: Kp on November 19, 2003, 04:10 PM
Quote from: Myndfyre on November 19, 2003, 04:04 PM
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.
Yes, it would.  By convention, a leading 0 indicates octal unless some other indicator is present (such as a trailing 'b', but that can be confused with hex - heh).  So, 01010000 (octal) would be 0x41. ;)

It looks more like 8 bits of binary than like octal, since nobody uses octal anyway, but meh
Title: Re:Silly nit to Myndfyre
Post by: Skywing on November 19, 2003, 04:55 PM
Quote from: iago on November 19, 2003, 04:20 PM
Quote from: Kp on November 19, 2003, 04:10 PM
Quote from: Myndfyre on November 19, 2003, 04:04 PM
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.
Yes, it would.  By convention, a leading 0 indicates octal unless some other indicator is present (such as a trailing 'b', but that can be confused with hex - heh).  So, 01010000 (octal) would be 0x41. ;)

It looks more like 8 bits of binary than like octal, since nobody uses octal anyway, but meh
C supports octal (but not binary) constants.
Title: Re:Silly nit to Myndfyre
Post by: iago on November 19, 2003, 05:02 PM
Quote from: Skywing on November 19, 2003, 04:55 PM
Quote from: iago on November 19, 2003, 04:20 PM
Quote from: Kp on November 19, 2003, 04:10 PM
Quote from: Myndfyre on November 19, 2003, 04:04 PM
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.
Yes, it would.  By convention, a leading 0 indicates octal unless some other indicator is present (such as a trailing 'b', but that can be confused with hex - heh).  So, 01010000 (octal) would be 0x41. ;)

It looks more like 8 bits of binary than like octal, since nobody uses octal anyway, but meh
C supports octal (but not binary) constants.

I don't talk in C! I talk in whatever's easiest! :P
Title: Re:Silly nit to Myndfyre
Post by: MyndFyre on November 19, 2003, 05:18 PM
Quote from: Kp on November 19, 2003, 04:10 PM
Quote from: Myndfyre on November 19, 2003, 04:04 PM
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.
Yes, it would.  By convention, a leading 0 indicates octal unless some other indicator is present (such as a trailing 'b', but that can be confused with hex - heh).  So, 01010000 (octal) would be 0x41. ;)

Actually Kp, we learned in a 100-level class that a leading 0 indicates that a number is a signed positive two's-complement number.  Speaking strictly binary, one could interpret 1010000 as a negative number - specifically -48.

And in re: to Grok, about the binary number system existing long before transistors and capacitors - indeed you are correct.  However, it is a step to go from electrical charge to logic, and another to go from logical values to numerics.  While "to form" might not be very clear, it is still an accurate enough word choice for this particular application.
Title: Re:Silly nit to Myndfyre
Post by: Banana fanna fo fanna on November 19, 2003, 05:23 PM
Quote from: Myndfyre on November 19, 2003, 05:18 PM
Quote from: Kp on November 19, 2003, 04:10 PM
Quote from: Myndfyre on November 19, 2003, 04:04 PM
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.
Yes, it would.  By convention, a leading 0 indicates octal unless some other indicator is present (such as a trailing 'b', but that can be confused with hex - heh).  So, 01010000 (octal) would be 0x41. ;)

Actually Kp, we learned in a 100-level class that a leading 0 indicates that a number is a signed positive two's-complement number.  Speaking strictly binary, one could interpret 1010000 as a negative number - specifically -48.

And in re: to Grok, about the binary number system existing long before transistors and capacitors - indeed you are correct.  However, it is a step to go from electrical charge to logic, and another to go from logical values to numerics.  While "to form" might not be very clear, it is still an accurate enough word choice for this particular application.


Leading zero is only talking about the binary number's representation in computer memory. I could easily write -101.

edit: i suck at quoting
Title: Re:Pings with Telnet or BNLS
Post by: CrAzY on November 23, 2003, 12:18 AM
Quote from: UnderCover on November 19, 2003, 03:14 PM
Is there a way to ping someone through BNLS or Telnet?

Just use cmd.exe    ping 127.0.0.1

Works like magic ey?