PDA

Click to See Complete Forum and Search --> : Qs: Split info. from received packet


Yoosha
Jul 3rd, 2007, 10:02 AM
Hi,
How can i split info. from received packet. for ex:

VBForums IP address:
Ascii: .?ìIÜ
Hex: 3F EC 49 DC
How can i translate this to VBForums IP address?

My IP address:
Ascii: T/Ðó
Hex: 54 2F D0 F3
How can i translate this to find my IP address?

Port #80:
Ascii: .P
Hex: 00 50
How can i translate this to find port #80?

or ...
Very thanks ;)

superbovine
Jul 3rd, 2007, 05:47 PM
Hex to base 10 (decimal)
http://www.stcsc.edu/OCL/hex_to_decimal_conversion.htm

http://vb-helper.com/howto_dec_hex_oct_bin.html

Yoosha
Jul 4th, 2007, 01:46 AM
Very thanks SuperBovine ;).
Do you know how can i convert Decimal(Long) value to IP address?

Long(Decimal) value: 1412419720

ccoder
Jul 5th, 2007, 07:57 AM
Do you know how can i convert Decimal(Long) value to IP address?

Long(Decimal) value: 1412419720
Take a look at this (http://www.vbforums.com/showthread.php?t=234539) thread. It deals with RGB values, but could just as easily be used to get the 4 byte values of the IP address.