[PD-dev] net objects

Hans-Christoph Steiner hans at eds.org
Tue Apr 25 17:39:20 CEST 2006


Would you like to have write access to the CVS?  You are contributing  
quite a bit these days, so it makes sense.

.hc

On Apr 24, 2006, at 7:25 PM, Martin Peach wrote:

> cyrille henry wrote:
>
>> hello,
>> this is what i was looking for to control a lanbox dmx controler.
>> send object work, but i have problem with receive objects :
>>
>> cc -DPD -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wshadow - 
>> Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno- 
>> switch -I../../src -o udpreceive.o -c udpreceive.c
>> cc1: warnings being treated as errors
>
>
> If you take out the Werror it should compile.
>
>> udpreceive.c: In function ‘udpreceive_read’:
>> udpreceive.c:49: attention : pointer targets in passing argument 6  
>> of ‘recvfrom’ differ in signedness
>
>
>
> Otherwise changing the line
>    int                 fromlen = sizeof(from);
> to
>    socklen_t           fromlen = sizeof(from);
> will cure the problem.
> socklen_t is defined in sys/socket.h, or ws2tcpip.h on MSW.
>
>
>> make: *** [udpreceive.pd_linux] Erreur 1
>> cc -DPD -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wshadow - 
>> Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno- 
>> switch -I../../src -o tcpreceive.o -c tcpreceive.c
>> cc1: warnings being treated as errors
>> tcpreceive.c: In function ‘tcpreceive_connectpoll’:
>> tcpreceive.c:196: attention : pointer targets in passing argument  
>> 3 of ‘accept’ differ in signedness
>
>
>
> Here again changing the line
>    int                 fromlen = sizeof(from);
> to
>    socklen_t           fromlen = sizeof(from);
> will cure the problem.
>
>
>
>> make: *** [tcpreceive.pd_linux] Erreur 1
>>
>>
>> could this object be found on the cvs?
>>
> No, I don't have write access to the cvs. I'll post the corrected  
> code today here: http://puredata.info/Members/martinrp/netobjects
> Of course anyone is welcome to put the files in cvs...
> Martin
>
>
>> thanks
>> Cyrille
>>
>>
>>
>> Martin Peach a écrit :
>>
>>> I made some net externals that use raw bytes instead of pd messages:
>>> http://puredata.info/Members/martinrp/netobjects
>>> They are based on netreceive and netsend. Maybe they could be  
>>> incorporated into pd since they're using poll functions which are  
>>> not officially exposed in m_pd.h.
>>> I'm working on packOSC and upackOSC which interface to these  
>>> objects via lists of floats-constrained-to-be-bytes. unpackOSC  
>>> will allow routing via route instead of OSCroute since the path  
>>> will be separated into symbols and output as a list. The data  
>>> will be output as a separate list.
>>>
>>> Martin
>>>
>>> _______________________________________________
>>> PD-dev mailing list
>>> PD-dev at iem.at
>>> http://lists.puredata.info/listinfo/pd-dev
>>>
>>>
>>
>> _______________________________________________
>> PD-dev mailing list
>> PD-dev at iem.at
>> http://lists.puredata.info/listinfo/pd-dev
>>
>
>
>
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev


________________________________________________________________________ 
____

Man has survived hitherto because he was too ignorant to know how to  
realize his wishes.
Now that he can realize them, he must either change them, or perish.
		                                                -William Carlos  
Williams





More information about the Pd-dev mailing list