• Welcome to Valhalla Legends Archive.
 

Pings with Telnet or BNLS

Started by UnderCover, November 19, 2003, 03:14 PM

Previous topic - Next topic

UnderCover

Is there a way to ping someone through BNLS or Telnet?

MyndFyre

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.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

UnderCover

#2
lol i meant ping battle.net players, and i also meant tcp, thats wut i use to connect bnet for information.

;D

UnderCover

#3
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

Banana fanna fo fanna



MyndFyre

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.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Grok

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.

Kp

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. ;)
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

iago

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
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Skywing

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.

iago

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
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


MyndFyre

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.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Banana fanna fo fanna

#13
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

CrAzY

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?
CrAzY