|
Well turns out I figured out the problem. The method that I created, myAddress() returns a string in one of two formats. It returns my IP address in the format #.#.#.# when you pass a boolean value of true, or it returns the IP address without the periods (####) if you pass a boolean value of false. However, the DCC Chat protocol doesn't work this way. It actually requires an IP4 address to be send into the string. Which basically means I have to take the address a.b.c.d and convert it into a long in the following manner:
ip4 = (a * 256 ^ 3) + (b * 256 ^ 2) + (c * 256 ^ 1) + (d * 256 ^ 0)
ip4 = a * 16777216 + b * 65536 + c * 256 + d
That little conversion solved the problem and established the connection. The work on the bot is actually progressing nicely. Gotta figure out some more stuff though, so I may be back with other questions.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
|