[PD] tcpsend disconnects
Roman Haefeli
reduzent at gmail.com
Thu Oct 26 22:14:17 CEST 2023
Hey Csaba
On Thu, 2023-10-26 at 19:51 +0200, Csaba Láng wrote:
> I am struggling with this for many years, and looks like cannot solve
> the issue of the tcpsend object which disconnects by itself.
Which [tcpsend] are you talking about? There are two flavors around:
* mrpeach (unmaintained)
* iemnet (recommended)
> Would be easy to reconnect if I had an outlet with the info if
> connected or not like netsend has.
I checked iemnet's [tcpsend] and it has only one outlet whose sole
purpose is to indicate whether it is connected or not.
> Is there any solution to keep it connected stable?
It appears that the outlet only sends 0, if the disconnect was
initiated by [tcpsend] itself. It happily stays at 1, if the other end
quits the connection. This is clearly a bug and should be reported:
https://git.iem.at/pd/iemnet/-/issues
Until this gets fixed, you could:
* replace [tcpsend] with [tcpclient]. Its third outlet reports the
connection state correctly.
* use [netsend -b] from Pd which reports connection state correctly
on the first outlet
Actually, I don't quite see the purpose of [tcpsend] as [tcpclient]
covers all its capabilities. Probably it is there only for historic
reasons.
Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20231026/04b1bc2e/attachment-0001.sig>
More information about the Pd-list
mailing list