[PD] pd and tcp: what to do against crashes?
Martin Peach
martin.peach at sympatico.ca
Sun Mar 1 20:01:25 CET 2009
Martin Peach wrote:
> Roman Haefeli wrote:
>> i don't know, how much control you have at c level over what is
>> happening at tcp level. in order to solve the current issues at
>> pd-level, information about either the current buffer size or amount of
>> sent bytes (number of bytes removed from the buffer) would be required.
>> i don't know how and if this is possible at all.
>
> I don't think it's possible (but then I'm often wrong ;(). There might
> be an ioctl that will return the buffer size so you could know how much
> is safe to send at once.
Yes you see I was wrong. There is a getsockopt call that will return the
buffer size. And a setsockopt that can also set the size on a per-socket
basis.
On WinXp I get 8192 for the default send buffer.
Martin
More information about the Pd-list
mailing list