BNETDocs
S>C 0x3E SID_LOGONREALMEX
Message Id:0x3E
Message Name:SID_LOGONREALMEX
Direction:Server to Client
Used By:Diablo II, Diablo II Lord of Destruction
Format:

 (UINT32)     MCP Cookie
 (UINT32)     MCP Status
 (UINT32)[2]  MCP Chunk 1
 (UINT32)     IP
 (UINT32)     Port
 (UINT32)[12] MCP Chunk 2
(STRING)     Battle.net unique name

Remarks

This packet supplies the data necessary to connect to an MCP server. The cookie value is defined in the first UINT32 of SID_LOGONREALMEX and is simply returned by Battle.net. If the length of the message (not including header) is greater than 8, the client should continue to logon to the MCP. Otherwise, the Status field is interpreted as an error code:

  • 0x80000001: Realm is unavailable
  • 0x80000002: Realm logon failed

Any other value indicates failure.

The first part of the MCP Chunk that must be sent to the MCP server includes the Status and Cookie UINT32S, making MCP Chunk 1 the first 4 UINT32S of the packet.

There used to be a UINT16 at the end of this packet, which was apparently random.

| Edited:
Comments

no one has commented yet.