Spoke too soon. On Debian setting the buffer to any size always returns me 2048, so that's no good.
On WinXP some values (1,2) do what you said. Others (10,12) don't. I'm not sure what to do about that. It seems to be the OS.
Martin
From: martin.peach@sympatico.ca
To: reduzierer@yahoo.de; pd-dev@iem.at
Date: Mon, 6 Apr 2009 20:33:15 +0000
Subject: Re: [PD-dev] [tcpserver]: new 'clientbuf' method seems to be buggy
Well I'm trying to get rid of the bugs in it...
I don't get that on WinXP though (Pd 0.41.4-extended). I set the buffer to 12 and still received 30 bytes.
On Debian with Pd 0.41.4-extended I get two separate messages (each longer than 12) but still all the data arrives.
Martin
> From: reduzierer@yahoo.de
> To: pd-dev@iem.at
> Date: Mon, 6 Apr 2009 17:38:20 +0200
> Subject: [PD-dev] [tcpserver]: new 'clientbuf' method seems to be buggy
>
> hi martin
>
> i reckon, that you're working on tcpserver code these days, at least
> when ever i update mrpeach from svn, the tcpserver.c file is updated. so
> please tell me, if it makes sense at all to currently report bugs.
>
> after having set the buffersize using the 'clientbuf' messages, message
> to the client, for which the buffersize was set, are truncated. while
> sending 30 byte messages, only 15 bytes are sent, respectively 15 bytes
> are received on the client side.
>
> please check the attached bug illustration patch
>
> roman