Hello,
the question is silly but I couldn't figure out from http://pdstatic.iem.at/externals-HOWTO/
I am writing an externals that initializes netsend_tilde by sending a message of the type:
[connect <IP> <port>(
As I coded it now, my external sends out this:
symbol connect 123.123.123.123 12345
Within the patch I can put a [$1( between the outlet of my external and netsend, however I want to print out from the outlet a clean "connect <IP> <port>" message without "symbol" in front of it.
My code:
x->x_nsend_outlet = outlet_new(&x->x_obj, &s_symbol); // I tried also 0 as the first argument (message outlet-type) but did not work
char nsend_message[MESSAGE_LEN];
sprintf(nsend_msg,"connect %s %d",inet_ntoa(cli_addr.sin_addr),nsend_port); // create the message to send out "connect <IP> <port>"
outlet_symbol(x->x_nsend_outlet, gensym((char*) nsend_msg)); // outlets the message
Thanks, cheers
Leopard