|
|
Регистрация Восстановить пароль |
Повторная активизация e-mail |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
21.01.2014, 19:25 | #1 |
Форумчанин
Регистрация: 24.02.2010
Сообщений: 148
|
TudpSocket send buff
Есть некий протокол, вот он сам
1) Login packet ------------ This is the first packet being sent to the server. A successful login is required to send actual commands to the server. The format is as follows: 0x00 | password (ASCII string without null-terminator) The server's BE RCon, if enabled, acknowledges with the following packet: 0x00 | (0x01 (successfully logged in) OR 0x00 (failed)) If the server doesn't respond, BE RCon is not enabled (no password specified). 2) Command packet -------------- After a client logged in successfully, it may send BE Server commands (and possibly game server commands) to the server. The format is as follows: 0x01 | 1-byte sequence number (starting at 0) | command (ASCII string without null-terminator) The server's BE RCon acknowledges with the following packet: 0x01 | received 1-byte sequence number | (possible header and/or response (ASCII string without null-terminator) OR nothing) The following header exists only if the server responds with multiple packets due to packet size limitations. The header is present in each of those packets. 0x00 | number of packets for this response | 0-based index of the current packet An empty 2-byte command packet (without actual command string) has to be sent every 45 seconds (or less) to keep the connection/login alive, if there are no other command packets being sent. If there are no command packets coming from the client for more than 45 seconds, it will be removed from BE RCon's list of authenticated clients and will no longer be able to issue any commands. вопрос как отправить данный пакет и принять ответ ??? вот crc32 Код:
|
22.01.2014, 20:52 | #2 |
Форумчанин
Регистрация: 24.02.2010
Сообщений: 148
|
Делаю так:
[B] сказано заголовок описать так: 'B'(0x42) | 'E'(0x45) | 4-byte CRC32 checksum of the subsequent bytes | 0xFF Последний раз редактировалось fucil; 23.01.2014 в 16:14. |
23.01.2014, 16:12 | #3 |
Форумчанин
Регистрация: 24.02.2010
Сообщений: 148
|
Тема закрыта !
Тема закрыта, решение найдено !
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
NET SEND | Акоб | Windows | 15 | 01.02.2011 18:28 |
Send и PostMessage | Alex Cones | Общие вопросы Delphi | 5 | 13.09.2010 19:48 |
Mail send | MAcK | Общие вопросы .NET | 4 | 01.10.2008 18:12 |
Send Message | _SERGEYX_ | Работа с сетью в Delphi | 5 | 30.10.2007 06:38 |
TTcpServer и TUdpSocket блокируют порт | hawk1 | Работа с сетью в Delphi | 5 | 07.12.2006 23:29 |