comparison rvinterf/include/localsock.h @ 958:ca6e969be6ee

rvinterf suite: raise MAX_PKT_FROM_TARGET to 1600
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 08 Jun 2023 02:47:48 +0000
parents e7502631a0f9
children
comparison
equal deleted inserted replaced
957:e030327b6a9a 958:ca6e969be6ee
5 * The UNIX domain sockets used for this ad hoc interface are of the 5 * The UNIX domain sockets used for this ad hoc interface are of the
6 * SOCK_STREAM kind, but the true nature of the communication is message-based. 6 * SOCK_STREAM kind, but the true nature of the communication is message-based.
7 * We use the same trick that is used for DNS over TCP: every message in each 7 * We use the same trick that is used for DNS over TCP: every message in each
8 * direction is preceded by a 2-byte length. This length is sent MSB first 8 * direction is preceded by a 2-byte length. This length is sent MSB first
9 * just like in DNS over TCP. The limit on the size of these messages 9 * just like in DNS over TCP. The limit on the size of these messages
10 * (for sizing buffers etc) is: 10 * (for sizing buffers etc) needs to be the larger of MAX_PKT_TO_TARGET and
11 * MAX_PKT_FROM_TARGET plus 1, and currently equals:
11 */ 12 */
12 13
13 #define LOCALSOCK_MAX_MSG 1024 14 #define LOCALSOCK_MAX_MSG 1601
14 15
15 /* 16 /*
16 * Each message in the client->rvinterf direction (can be seen as command) 17 * Each message in the client->rvinterf direction (can be seen as command)
17 * begins (after the length) with an opcode byte as follows: 18 * begins (after the length) with an opcode byte as follows:
18 */ 19 */