[Firebird-devel] p_batch_cs on the wire

2021-12-21 Thread Jiří Činčura
Hi *, I'm trying to read the response for op_batch_exec (op_batch_cs), the p_batch_cs. But what I'm getting over the wire (using fbclient library) is this `67 00 00 00 02 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01` and I'm confused. Here's what I'm decoding manually: 67 00 00 0

Re: [Firebird-devel] p_batch_cs on the wire

2021-12-21 Thread Alex Peshkoff via Firebird-devel
On 12/21/21 12:04, Jiří Činčura wrote: Hi *, I'm trying to read the response for op_batch_exec (op_batch_cs), the p_batch_cs. But what I'm getting over the wire (using fbclient library) is this `67 00 00 00 02 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01` and I'm confused. Here

Re: [Firebird-devel] p_batch_cs on the wire

2021-12-21 Thread Dimitry Sibiryakov
Alex Peshkoff via Firebird-devel wrote 21.12.2021 12:06: this I can't explain right now, looks like 3 last 00 got lost somehow Perhaps you mistakenly used routine for storing INF values which throw away leading zeros reducing value to minimal necessary number of bytes. -- WBR, SD. Fire

Re: [Firebird-devel] p_batch_cs on the wire

2021-12-21 Thread Alex Peshkoff via Firebird-devel
On 12/21/21 14:20, Dimitry Sibiryakov wrote: Alex Peshkoff via Firebird-devel wrote 21.12.2021 12:06: this I can't explain right now, looks like 3 last 00 got lost somehow   Perhaps you mistakenly used routine for storing INF values which throw away leading zeros reducing value to minimal nec

Re: [Firebird-devel] p_batch_cs on the wire

2021-12-21 Thread Jiří Činčura
When sending 2 msgs (again, using fbclient.dll), the response is as follows. I don't understand that either. 67 00 00 00 (obviously operation ) 02 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 Client library processes it fine, but I'm not sure what's what. I also don't

Re: [Firebird-devel] p_batch_cs on the wire

2021-12-21 Thread Alex Peshkoff via Firebird-devel
On 12/21/21 15:46, Jiří Činčura wrote: When sending 2 msgs (again, using fbclient.dll), the response is as follows. I don't understand that either. 67 00 00 00 (obviously operation ) 02 00 00 00 p_batch_statement 02 00 00 00 p_batch_reccount 02 00 00 00 p_batch_updates 00 00 00 00 p_batch_vector

Re: [Firebird-devel] p_batch_cs on the wire

2021-12-21 Thread Jiří Činčura
> Are you sure you've shown me dump correctly? Here must be one more That's what I see in WireShark. Could you maybe describe in one or two sentences what the fields in p_batch_cs mean logically? Especially with regards to options one can send in BPB. It's difficult to do the decoding of pack

Re: [Firebird-devel] p_batch_cs on the wire

2021-12-21 Thread Dimitry Sibiryakov
Jiří Činčura wrote 21.12.2021 16:12: That's what I see in WireShark. It looks like leading three zero bytes disappeared in the dump somehow. Were they in a previous packet? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-

Re: [Firebird-devel] p_batch_cs on the wire

2021-12-21 Thread Jiří Činčura
Now I realized what's going on. I started with `67 00 00 00 ...`, yet I forgot about the leading zeros, it should be `00 00 00 67 00 00 00 ...`. Now it makes bit more sense. But still a simple description of fields in p_batch_cs would speed things up for me greatly. -- Mgr. Jiří Činčura https

Re: [Firebird-devel] p_batch_cs on the wire

2021-12-21 Thread Alex Peshkoff via Firebird-devel
On 12/21/21 18:48, Jiří Činčura wrote: Now I realized what's going on. I started with `67 00 00 00 ...`, yet I forgot about the leading zeros, it should be `00 00 00 67 00 00 00 ...`. Now it makes bit more sense. But still a simple description of fields in p_batch_cs would speed things up for

Re: [Firebird-devel] p_batch_cs on the wire

2021-12-21 Thread Alex Peshkoff via Firebird-devel
On 12/21/21 18:12, Jiří Činčura wrote: Are you sure you've shown me dump correctly? Here must be one more That's what I see in WireShark. Could you maybe describe in one or two sentences what the fields in p_batch_cs mean logically? typedef struct p_batch_cs   // completion state