Цитата:
Сообщение от NLObP
Вроде работа со строками по разному организована.
|
единственное преобразование для D2010:
Код:
SockAddr.sin_addr.S_addr := inet_addr( PAnsiChar( AnsiString( LS_HOST ) ) );
и совсем неадекватный результат:
Оффтоп
Код:
WinSocket Library has been initialised
Connected to Remote Server
Server MSG, Length: 186 (0xBA)
-------------------------------------------------------
0x0000| BA 00 00 4A 39 06 00 4A 39 06 29 74 C4 F5 41 6A
0x0010| 98 60 BC A6 FF 4D AB 89 01 C4 71 D7 1A 9D E0 F1
0x0020| 18 28 24 48 46 45 51 53 DE 54 EC 53 24 72 1D 29
0x0030| C1 A0 7D F9 5C 39 4B 93 FF 6D 4A F5 C3 25 84 3A
0x0040| 17 B4 4C FE 63 60 A2 96 9E 68 2E C9 53 6D 8A 5C
0x0050| 1C 29 12 83 CD F1 77 3C 59 EF 29 41 92 93 37 7B
0x0060| B5 0D 6C 02 BF 91 A7 39 FA 30 27 7B 52 46 41 AE
0x0070| BD 05 0D F6 66 12 2C 4B 7A CA 2F 4B 14 37 F9 2D
0x0080| B1 E6 67 35 D4 35 8B 72 CF 89 9D 80 10 00 91 0D
0x0090| F8 12 A9 36 68 43 A9 36 68 43 C7 53 7E 82 05 2D
0x00A0| 9C 95 16 5A 9B 50 3B 58 44 52 B2 B1 BD D3 87 38
0x00B0| 6F 87 01 5D 08 0A 66 36 64 66
RSA Key changed
BlowFish key changed
Client MSG, Length: 42 (0x2A)
-------------------------------------------------------
0x0000| 2A 00 07 4A 39 06 00 00 00 00 00 00 00 00 00 00
0x0010| 00 00 00 00 00 00 00 00 00 00 07 4A 39 06 00 00
0x0020| 00 00 00 00 00 00 00 00 00 00
RS was Disconnected
мне уже кажется, что с этими непонятками я просто хожу по замкнутому кругу, буксую на месте
UPD1
кто является автором примера
la2_client_emu.rar?
UPD2
Добавлено через 17 часов 26 минут
Расширил логирование в
la2_client_emu и судя по логу программа не может дойти до следующих методов:
LS_ServerList() и
LS_PlayOk().
После последнего успешного выполнения метода
RequestServerList() в методе
WMSOCK_RS_EVENT(Msg) происходит
WSAECONNABORTED (#10053).
Подскажите в чем может быть проблема? Что может разрывать совет?
Текст лога:
Оффтоп
Код:
------------------------------------------------------
[Login Server Host | Port]: xxx.xxx.xxx.xxx | 2106
[Game Server Host | Port]: xxx.xxx.xxx.xxx | 7777
[Accounts]
[1] login: ***** # password: *****
------------------------------------------------------
[Init]: BlowFish_Key = 6B60CB5B82CE90B1CC2B6C556C6C6C6C
[Init]: WinSocket Library has been initialised
[RS_Connect]: Connected to Login-Server
-------------------------------------------------------
Step [1]
-------------------------------------------------------
[WMSOCK_RS_EVENT]: WinSock.{FD_Read}
Server->Client, Length: 186 (0xBA)
-------------------------------------------------------
0x0000| BA 00 00 B2 65 06 00 21 C6 00 00 2F 3E D2 78 D2
0x0010| 05 4B C7 C3 58 5A 50 10 34 D8 A2 47 4B 62 F1 78
0x0020| B5 F1 EE 35 AC 2E C2 B5 7C 38 34 86 64 DA DE 92
0x0030| 47 43 AE A6 FF D9 83 40 54 54 B6 C3 74 07 9A F8
0x0040| 5B 52 48 05 EB E5 96 8D 72 ED 52 80 F6 A7 9C 65
0x0050| 92 E5 A6 D2 96 33 AC 4B B7 2A 34 31 CA 89 48 F6
0x0060| A4 7A 70 4A 79 C8 E9 E8 7A 08 2C 46 0D 76 30 97
0x0070| 79 E7 3C 22 25 B9 DA CA EE DE CA 76 A5 34 14 07
0x0080| C5 B9 0C CA 97 B1 2B 52 B2 8A A5 00 00 00 00 00
0x0090| 00 00 00 00 00 00 00 00 00 00 00 44 0E 96 F7 FB
0x00A0| 9F 7B 66 29 66 D5 F8 C2 9E 5C 5E E6 74 B0 BD 66
0x00B0| 9F F9 F4 E1 A5 5A 28 6E B6 0F
[LS_Parser]: buff[2]=0x00 | 0x00 -> LS_Init()
[LS_Init].........................................START
[LS_Init]: Len=186 | Len<8 -> EXIT
[LS_Init]: RSA Key changed
[LS_Init]: BlowFish Key changed
[AuthGameGuard]_____________Packet-Prepare_____________
Client->Server, Length: 42 (0x2A)
-------------------------------------------------------
0x0000| 2A 00 07 B2 65 06 00 00 00 00 00 00 00 00 00 00
0x0010| 00 00 00 00 00 00 00 00 00 00 07 B2 65 06 00 00
0x0020| 00 00 00 00 00 00 00 00 00 00
[AuthGameGuard]______________Packet-Send_______________
[LS_Init]...........................................END
-------------------------------------------------------
Step [2]
-------------------------------------------------------
[WMSOCK_RS_EVENT]: WinSock.{FD_Read}
Server->Client, Length: 42 (0x2A)
-------------------------------------------------------
0x0000| 2A 00 0B B2 65 06 00 00 00 00 00 00 00 00 00 00
0x0010| 00 00 00 00 00 00 00 1D B7 52 B1 0D E8 00 79 7B
0x0020| 7A 90 C3 D9 40 C4 73 39 CB 05
[LS_Parser]: buff[2]=0x0B | 0x0B -> LS_GGAuth()
[LS_GGAuth].......................................START
[LS_GGAuth]: Len=42 | Len>=7 -> Move(buff[3], GGAuthResponse, 4)
[RequestAuthLogin]___________Packet-Prepare____________
Client->Server, Length: 178 (0xB2)
-------------------------------------------------------
0x0000| B2 00 00 31 5C 15 07 84 F2 13 E8 4C 8E A3 A7 8D
0x0010| F6 18 49 6F B5 EE A3 82 2C E1 42 AC 2F 48 C4 D7
0x0020| 4D 70 F0 10 5F 88 6B 63 03 5B 2D D4 09 BE B3 AB
0x0030| AD A9 BA 03 33 9E 56 1C C9 C8 53 50 84 C9 BF 3A
0x0040| E1 0E FB 3E D4 F7 BD B8 D3 CE BB 32 1A 27 8D 67
0x0050| B1 66 BC 97 36 32 0F 0C 26 03 44 CC 56 51 68 0B
0x0060| 46 30 51 05 AD 9D 3F 58 FA 8F A7 3E BF 3C D4 5B
0x0070| 49 4F 35 AF 6C 57 81 52 DD FA B8 CB 2E D2 94 91
0x0080| 86 32 81 B2 65 06 00 00 00 00 00 00 00 00 00 00
0x0090| 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 00
0x00A0| 00 00 CA 31 3B DD 00 00 00 00 00 00 00 00 00 00
0x00B0| 00 00
[RequestAuthLogin]___________Packet-Send_______________
[LS_GGAuth].........................................END
-------------------------------------------------------
Step [3]
-------------------------------------------------------
[WMSOCK_RS_EVENT]: WinSock.{FD_Read}
Server->Client, Length: 66 (0x42)
-------------------------------------------------------
0x0000| 42 00 03 4C 39 29 00 05 61 67 64 5B C7 8B 41 00
0x0010| 00 00 00 EA 03 00 00 00 00 00 00 00 00 00 00 00
0x0020| 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0030| 00 00 00 CE A8 06 85 A9 54 31 A3 9F 60 F2 B0 18
0x0040| 76 73
[LS_Parser]: buff[2]=0x03 | 0x03 -> LS_LoginOk()
[LS_LoginOk]......................................START
[LS_LoginOk]: Len=66 [Len<12 -> EXIT]
[LS_LoginOk]: Login Successful!
[RequestServerList]__________Packet-Prepare____________
Client->Server, Length: 34 (0x22)
-------------------------------------------------------
0x0000| 22 00 05 4C 39 29 00 05 61 67 64 04 00 00 00 00
0x0010| 00 00 61 4D 58 4E 00 00 00 00 00 00 00 00 00 00
0x0020| 00 00
[RequestServerList]__________Packet-Send_______________
[LS_LoginOk]........................................END
[WMSOCK_RS_EVENT]: WSAECONNABORTED (#10053) - Software caused connection abort
[L2SocketClose]: RS disconnected