Jump to content

Question about 1.12.1 connection process


Recommended Posts

Posted

I don't know if this is the right place to post this but it seemed appropriate.

I have been following the mangos zero source to learn more about client server interaction but i have been doing all my code in c#.

The login server was relatively easy to figure out and I have mine working 100%. However, when I hand the client off to the realm, the following happens:

1. Client Connects

2. Server sends SMSG_AUTH_CHALLENGE and the random seed

3. Client responds with CMSG_AUTH_SESSION

4. This is where the issue i'm having occurs, If i try to respond with a packet such as AUTH_VERSION_MISMATCH, the client just sits there and does nothing

At what point is the connection encrypted? Is the client not responding because it expects AUTH_VERSION_MISMATCH to be encrypted?

Thanks in advance,

Tim Thompson

Posted

It does actually get sent and it is formed correctly.

the packet i try to send is 3 bytes long, with the 0x01EE opcode, and the auth response 0x1D

the packet the client receives is 03 00 EE 01 1D

so everything looks correct to me, i'll read over that document, thank you!

Posted

I cannot be sure, but 0x1D is AUTH_ALREADY_ONLINE - an error code mangos never seems to send. AUTH_VERSION_MISMATCH is 0x14

You can always try to connect to your server using pseuwow and see what it says about it - it certainly is more verbous then the original client ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use