[announce] netdist, was: Re: [PD][announce] maxlib v0.4

Olaf Matthes olaf.matthes at gmx.de
Fri May 17 01:44:53 CEST 2002


Hi,

no problem, check the site again and look for 'netdist' (not yet included in the
library). It's a multithreaded netsend that has been modyfied to allow multiple
connections in 'dist' style. I hope the multithreading stuff will work under Linux
as well...

Olaf

Damien HENRY schrieb:

> > there are two objects, 'dist' and 'remote', which can be used to send
> > data to 'receive' objects. 'dist' (or just 'd') allows to use 'connect
> > <name>' messages to add names of receive objects to a list (and
> > 'disconnect <name>' to remove them).
>
> I've testing them yet, but the basic idea of thoses too object is just
> fantastic !
>
> I'm looking for the same, but about netsend & netreceive.
>
> I whant to be able to send from 1 object to an arbitrary number of netreiceve.
> In the code of the netsend object (x_net.c )there is a test to disable the
> creation of a new socket if there is already a connection.
>
> if (x->x_fd >= 0)
>     {
>         error("netsend_connect: already connected");
>         return;
>     }
>
>         /* create a socket */
>     sockfd = socket(AF_INET, x->x_protocol, 0);
>
> if I remove this test, is there a chance that it will work without crashing ?
>
> Netreceive is already able to receive from diferent sources and even to tell
> to how many.
> But is there here a socket gourou to give me a clue to do the hack in way
> that netreceive will output things like :
>
> 19.168.1.1 test 1
> 19.168.1.3 test 3
>
> I mean to use the IP addresse of the sender as a selector.
> my goal is to diferentiate the data by their sender.
>
> Thanks to anyone that can help me about it.
>
> Cheers
> Damien.




More information about the Pd-list mailing list