Valhalla Legends Forums Archive | Battle.net Bot Development | Pings with Telnet or BNLS

AuthorMessageTime
UnderCover
Is there a way to ping someone through BNLS or Telnet?
November 19, 2003, 9:14 PM
Myndfyr
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.
November 19, 2003, 9:28 PM
UnderCover
lol i meant ping battle.net players, and i also meant tcp, thats wut i use to connect bnet for information.

;D
November 19, 2003, 9:33 PM
UnderCover
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
November 19, 2003, 9:42 PM
St0rm.iD
Is this a joke?
November 19, 2003, 9:44 PM
UnderCover
lol
November 19, 2003, 9:45 PM
Myndfyr
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.
November 19, 2003, 10:04 PM
Grok
[quote author=Myndfyre link=board=17;threadid=3713;start=0#msg30152 date=1069279454]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.[/quote]

The binary number system existed even before transistors and capacitors.
November 19, 2003, 10:10 PM
Kp
[quote author=Myndfyre link=board=17;threadid=3713;start=0#msg30152 date=1069279454]
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.[/quote]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. ;)
November 19, 2003, 10:10 PM
iago
[quote author=Kp link=board=17;threadid=3713;start=0#msg30162 date=1069279859]
[quote author=Myndfyre link=board=17;threadid=3713;start=0#msg30152 date=1069279454]
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.[/quote]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. ;)
[/quote]

It looks more like 8 bits of binary than like octal, since nobody uses octal anyway, but meh
November 19, 2003, 10:20 PM
Skywing
[quote author=iago link=board=17;threadid=3713;start=0#msg30169 date=1069280439]
[quote author=Kp link=board=17;threadid=3713;start=0#msg30162 date=1069279859]
[quote author=Myndfyre link=board=17;threadid=3713;start=0#msg30152 date=1069279454]
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.[/quote]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. ;)
[/quote]

It looks more like 8 bits of binary than like octal, since nobody uses octal anyway, but meh
[/quote]
C supports octal (but not binary) constants.
November 19, 2003, 10:55 PM
iago
[quote author=Skywing link=board=17;threadid=3713;start=0#msg30176 date=1069282516]
[quote author=iago link=board=17;threadid=3713;start=0#msg30169 date=1069280439]
[quote author=Kp link=board=17;threadid=3713;start=0#msg30162 date=1069279859]
[quote author=Myndfyre link=board=17;threadid=3713;start=0#msg30152 date=1069279454]
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.[/quote]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. ;)
[/quote]

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

I don't talk in C! I talk in whatever's easiest! :P
November 19, 2003, 11:02 PM
Myndfyr
[quote author=Kp link=board=17;threadid=3713;start=0#msg30162 date=1069279859]
[quote author=Myndfyre link=board=17;threadid=3713;start=0#msg30152 date=1069279454]
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.[/quote]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. ;)
[/quote]

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.
November 19, 2003, 11:18 PM
St0rm.iD
[quote author=Myndfyre link=board=17;threadid=3713;start=0#msg30184 date=1069283885]
[quote author=Kp link=board=17;threadid=3713;start=0#msg30162 date=1069279859]
[quote author=Myndfyre link=board=17;threadid=3713;start=0#msg30152 date=1069279454]
Instead of saying "Send packet 0x50", we could say, "Send packet 01010000," but that would just be stupid.[/quote]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. ;)
[/quote]

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.
[/quote]


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

edit: i suck at quoting
November 19, 2003, 11:23 PM
CrAzY
[quote author=UnderCover link=board=17;threadid=3713;start=0#msg30134 date=1069276497]
Is there a way to ping someone through BNLS or Telnet?
[/quote]

Just use cmd.exe ping 127.0.0.1

Works like magic ey?
November 23, 2003, 6:18 AM

Search