I forgot to mention. To get data to into or outside PD using netsend/netrecieve you should compile u_pdreceive.c and u_pdsend.c located in the src dir. Those are stand alone programs which can communicate with PD netsend/recieve.
I have no idea if or how they work though.
Take care Soeren
Have a look at netsend and netreceive. TCP and UDP ports can be used this way. Have a look in the reference folder in your PD dir.