Csound Csound-dev Csound-tekno Search About

[Csnd-dev] OSCRaw...

Date2017-04-25 14:34
FromRory Walsh
Subject[Csnd-dev] OSCRaw...
Is this new opcode part of osc.dll? I just built from the dev branch and Csound doesn't recognise it. I had to disable building of the web socket opcodes, I hope the new opcodes aren't part of that..?

Date2017-04-25 14:41
FromRory Walsh
SubjectRe: [Csnd-dev] OSCRaw...
So it looks like it is part of the websocket stuff. If I enabled the building of these opcodes on Windows I get errors, posted below. I don't think I've ever built these before, do I need 3rd party libs? 

C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_finish':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:168:5: warning: implicit declaration of function 'lws_cancel_service' [-Wimplicit-function-declaration]
     lws_cancel_service(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:169:5: warning: implicit declaration of function 'lws_context_destroy' [-Wimplicit-function-declaration]
     lws_context_destroy(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_writeOnce':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:373:5: warning: implicit declaration of function 'lws_write' [-Wimplicit-function-declaration]
     lws_write(websocket, messageBuffer, inputArgument->bytesCount,
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleServerWritable':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: implicit declaration of function 'lws_get_protocol' [-Wimplicit-function-declaration]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:425:17: error: dereferencing pointer to incomplete type 'const struct lws_protocols'
     if (protocol->id / OUTPUT_OFFSET == 1) { // If it's an output argument
                 ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:427:7: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
       usleep(100);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:458:7: warning: implicit declaration of function 'lws_callback_on_writable' [-Wimplicit-function-declaration]
       lws_callback_on_writable(websocket);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleReceive':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:466:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: At top level:
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: 'enum lws_callback_reasons' declared inside parameter list
                               void *user, void *inputData, size_t inputDataSize)
                               ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:523:57: error: parameter 2 ('reason') has incomplete type
                               enum lws_callback_reasons reason,
                                                         ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'Websocket_callback':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:534:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:535:56: error: invalid type argument of '->' (have 'int')
     WebSocketOpcode *self = lws_get_protocol(websocket)->user;
                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_processThread':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:581:7: warning: implicit declaration of function 'lws_service' [-Wimplicit-function-declaration]
       lws_service(self->webSocket->context, 10);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:582:7: warning: implicit declaration of function 'lws_callback_on_writable_all_protocol' [-Wimplicit-function-declaration]
       lws_callback_on_writable_all_protocol(self->webSocket->context,
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:45: error: invalid use of undefined type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                             ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:72: error: dereferencing pointer to incomplete type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_initialiseWebSocket':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:596:37: error: invalid application of 'sizeof' to incomplete type 'struct lws_protocols'
       csound->Calloc(csound, sizeof(struct lws_protocols) * (argumentsCount + 1));
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:601:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name = self->inputArguments[i].name;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:602:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:603:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = INPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:604:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:605:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:611:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:613:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:614:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = OUTPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:615:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:616:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:622:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     self->webSocket->info.protocols = self->webSocket->protocols;
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:32: warning: implicit declaration of function 'lws_create_context' [-Wimplicit-function-declaration]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                                ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:30: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                              ^
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:62: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj' failed
make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj] Error 1
CMakeFiles/Makefile2:1402: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/all' failed
make[1]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/all] Error 2


On 25 April 2017 at 14:34, Rory Walsh <rorywalsh@ear.ie> wrote:
Is this new opcode part of osc.dll? I just built from the dev branch and Csound doesn't recognise it. I had to disable building of the web socket opcodes, I hope the new opcodes aren't part of that..?


Date2017-04-25 17:35
FromEd Costello
SubjectRe: [Csnd-dev] OSCRaw...
The web socket opcodes are separate from the OSC opcodes, they also require libwebsockets v2 https://libwebsockets.org/
Ed


On 25 Apr 2017, at 14:41, Rory Walsh <rorywalsh@EAR.IE> wrote:

So it looks like it is part of the websocket stuff. If I enabled the building of these opcodes on Windows I get errors, posted below. I don't think I've ever built these before, do I need 3rd party libs? 

C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_finish':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:168:5: warning: implicit declaration of function 'lws_cancel_service' [-Wimplicit-function-declaration]
     lws_cancel_service(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:169:5: warning: implicit declaration of function 'lws_context_destroy' [-Wimplicit-function-declaration]
     lws_context_destroy(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_writeOnce':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:373:5: warning: implicit declaration of function 'lws_write' [-Wimplicit-function-declaration]
     lws_write(websocket, messageBuffer, inputArgument->bytesCount,
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleServerWritable':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: implicit declaration of function 'lws_get_protocol' [-Wimplicit-function-declaration]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:425:17: error: dereferencing pointer to incomplete type 'const struct lws_protocols'
     if (protocol->id / OUTPUT_OFFSET == 1) { // If it's an output argument
                 ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:427:7: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
       usleep(100);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:458:7: warning: implicit declaration of function 'lws_callback_on_writable' [-Wimplicit-function-declaration]
       lws_callback_on_writable(websocket);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleReceive':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:466:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: At top level:
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: 'enum lws_callback_reasons' declared inside parameter list
                               void *user, void *inputData, size_t inputDataSize)
                               ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:523:57: error: parameter 2 ('reason') has incomplete type
                               enum lws_callback_reasons reason,
                                                         ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'Websocket_callback':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:534:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:535:56: error: invalid type argument of '->' (have 'int')
     WebSocketOpcode *self = lws_get_protocol(websocket)->user;
                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_processThread':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:581:7: warning: implicit declaration of function 'lws_service' [-Wimplicit-function-declaration]
       lws_service(self->webSocket->context, 10);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:582:7: warning: implicit declaration of function 'lws_callback_on_writable_all_protocol' [-Wimplicit-function-declaration]
       lws_callback_on_writable_all_protocol(self->webSocket->context,
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:45: error: invalid use of undefined type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                             ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:72: error: dereferencing pointer to incomplete type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_initialiseWebSocket':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:596:37: error: invalid application of 'sizeof' to incomplete type 'struct lws_protocols'
       csound->Calloc(csound, sizeof(struct lws_protocols) * (argumentsCount + 1));
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:601:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name = self->inputArguments[i].name;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:602:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:603:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = INPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:604:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:605:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:611:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:613:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:614:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = OUTPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:615:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:616:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:622:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     self->webSocket->info.protocols = self->webSocket->protocols;
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:32: warning: implicit declaration of function 'lws_create_context' [-Wimplicit-function-declaration]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                                ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:30: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                              ^
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:62: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj' failed
make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj] Error 1
CMakeFiles/Makefile2:1402: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/all' failed
make[1]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/all] Error 2


On 25 April 2017 at 14:34, Rory Walsh <rorywalsh@ear.ie> wrote:
Is this new opcode part of osc.dll? I just built from the dev branch and Csound doesn't recognise it. I had to disable building of the web socket opcodes, I hope the new opcodes aren't part of that..?



Date2017-04-25 17:40
FromRory Walsh
SubjectRe: [Csnd-dev] OSCRaw...
At least they used to be?


Good to know that I need libwebsockets. I hope a version exists for msys2

On 25 April 2017 at 17:35, Ed Costello <phasereset@gmail.com> wrote:
The web socket opcodes are separate from the OSC opcodes, they also require libwebsockets v2 https://libwebsockets.org/
Ed


On 25 Apr 2017, at 14:41, Rory Walsh <rorywalsh@EAR.IE> wrote:

So it looks like it is part of the websocket stuff. If I enabled the building of these opcodes on Windows I get errors, posted below. I don't think I've ever built these before, do I need 3rd party libs? 

C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_finish':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:168:5: warning: implicit declaration of function 'lws_cancel_service' [-Wimplicit-function-declaration]
     lws_cancel_service(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:169:5: warning: implicit declaration of function 'lws_context_destroy' [-Wimplicit-function-declaration]
     lws_context_destroy(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_writeOnce':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:373:5: warning: implicit declaration of function 'lws_write' [-Wimplicit-function-declaration]
     lws_write(websocket, messageBuffer, inputArgument->bytesCount,
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleServerWritable':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: implicit declaration of function 'lws_get_protocol' [-Wimplicit-function-declaration]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:425:17: error: dereferencing pointer to incomplete type 'const struct lws_protocols'
     if (protocol->id / OUTPUT_OFFSET == 1) { // If it's an output argument
                 ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:427:7: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
       usleep(100);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:458:7: warning: implicit declaration of function 'lws_callback_on_writable' [-Wimplicit-function-declaration]
       lws_callback_on_writable(websocket);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleReceive':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:466:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: At top level:
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: 'enum lws_callback_reasons' declared inside parameter list
                               void *user, void *inputData, size_t inputDataSize)
                               ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:523:57: error: parameter 2 ('reason') has incomplete type
                               enum lws_callback_reasons reason,
                                                         ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'Websocket_callback':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:534:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:535:56: error: invalid type argument of '->' (have 'int')
     WebSocketOpcode *self = lws_get_protocol(websocket)->user;
                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_processThread':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:581:7: warning: implicit declaration of function 'lws_service' [-Wimplicit-function-declaration]
       lws_service(self->webSocket->context, 10);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:582:7: warning: implicit declaration of function 'lws_callback_on_writable_all_protocol' [-Wimplicit-function-declaration]
       lws_callback_on_writable_all_protocol(self->webSocket->context,
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:45: error: invalid use of undefined type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                             ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:72: error: dereferencing pointer to incomplete type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_initialiseWebSocket':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:596:37: error: invalid application of 'sizeof' to incomplete type 'struct lws_protocols'
       csound->Calloc(csound, sizeof(struct lws_protocols) * (argumentsCount + 1));
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:601:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name = self->inputArguments[i].name;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:602:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:603:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = INPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:604:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:605:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:611:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:613:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:614:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = OUTPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:615:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:616:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:622:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     self->webSocket->info.protocols = self->webSocket->protocols;
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:32: warning: implicit declaration of function 'lws_create_context' [-Wimplicit-function-declaration]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                                ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:30: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                              ^
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:62: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj' failed
make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj] Error 1
CMakeFiles/Makefile2:1402: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/all' failed
make[1]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/all] Error 2


On 25 April 2017 at 14:34, Rory Walsh <rorywalsh@ear.ie> wrote:
Is this new opcode part of osc.dll? I just built from the dev branch and Csound doesn't recognise it. I had to disable building of the web socket opcodes, I hope the new opcodes aren't part of that..?




Date2017-04-25 17:44
FromEd Costello
SubjectRe: [Csnd-dev] OSCRaw...
No, websockets and those other opcodes are different, I’ve never used those other ones, but the websocket opcodes are used to communicate with a running browser and send data back and forth using javascript on the browser side.
Ed


On 25 Apr 2017, at 17:40, Rory Walsh <rorywalsh@EAR.IE> wrote:

At least they used to be?


Good to know that I need libwebsockets. I hope a version exists for msys2

On 25 April 2017 at 17:35, Ed Costello <phasereset@gmail.com> wrote:
The web socket opcodes are separate from the OSC opcodes, they also require libwebsockets v2 https://libwebsockets.org/
Ed


On 25 Apr 2017, at 14:41, Rory Walsh <rorywalsh@EAR.IE> wrote:

So it looks like it is part of the websocket stuff. If I enabled the building of these opcodes on Windows I get errors, posted below. I don't think I've ever built these before, do I need 3rd party libs? 

C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_finish':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:168:5: warning: implicit declaration of function 'lws_cancel_service' [-Wimplicit-function-declaration]
     lws_cancel_service(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:169:5: warning: implicit declaration of function 'lws_context_destroy' [-Wimplicit-function-declaration]
     lws_context_destroy(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_writeOnce':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:373:5: warning: implicit declaration of function 'lws_write' [-Wimplicit-function-declaration]
     lws_write(websocket, messageBuffer, inputArgument->bytesCount,
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleServerWritable':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: implicit declaration of function 'lws_get_protocol' [-Wimplicit-function-declaration]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:425:17: error: dereferencing pointer to incomplete type 'const struct lws_protocols'
     if (protocol->id / OUTPUT_OFFSET == 1) { // If it's an output argument
                 ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:427:7: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
       usleep(100);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:458:7: warning: implicit declaration of function 'lws_callback_on_writable' [-Wimplicit-function-declaration]
       lws_callback_on_writable(websocket);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleReceive':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:466:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: At top level:
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: 'enum lws_callback_reasons' declared inside parameter list
                               void *user, void *inputData, size_t inputDataSize)
                               ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:523:57: error: parameter 2 ('reason') has incomplete type
                               enum lws_callback_reasons reason,
                                                         ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'Websocket_callback':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:534:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:535:56: error: invalid type argument of '->' (have 'int')
     WebSocketOpcode *self = lws_get_protocol(websocket)->user;
                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_processThread':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:581:7: warning: implicit declaration of function 'lws_service' [-Wimplicit-function-declaration]
       lws_service(self->webSocket->context, 10);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:582:7: warning: implicit declaration of function 'lws_callback_on_writable_all_protocol' [-Wimplicit-function-declaration]
       lws_callback_on_writable_all_protocol(self->webSocket->context,
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:45: error: invalid use of undefined type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                             ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:72: error: dereferencing pointer to incomplete type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_initialiseWebSocket':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:596:37: error: invalid application of 'sizeof' to incomplete type 'struct lws_protocols'
       csound->Calloc(csound, sizeof(struct lws_protocols) * (argumentsCount + 1));
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:601:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name = self->inputArguments[i].name;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:602:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:603:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = INPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:604:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:605:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:611:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:613:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:614:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = OUTPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:615:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:616:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:622:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     self->webSocket->info.protocols = self->webSocket->protocols;
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:32: warning: implicit declaration of function 'lws_create_context' [-Wimplicit-function-declaration]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                                ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:30: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                              ^
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:62: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj' failed
make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj] Error 1
CMakeFiles/Makefile2:1402: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/all' failed
make[1]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/all] Error 2


On 25 April 2017 at 14:34, Rory Walsh <rorywalsh@ear.ie> wrote:
Is this new opcode part of osc.dll? I just built from the dev branch and Csound doesn't recognise it. I had to disable building of the web socket opcodes, I hope the new opcodes aren't part of that..?





Date2017-04-25 17:47
FromRory Walsh
SubjectRe: [Csnd-dev] OSCRaw...
Ah Ok. So sockrec and socksend aren't using websockets. My bad. Cool. Now to figure out why Csound doesn't recognise OSCraw after rebuilding...

On 25 April 2017 at 17:44, Ed Costello <phasereset@gmail.com> wrote:
No, websockets and those other opcodes are different, I’ve never used those other ones, but the websocket opcodes are used to communicate with a running browser and send data back and forth using javascript on the browser side.
Ed


On 25 Apr 2017, at 17:40, Rory Walsh <rorywalsh@EAR.IE> wrote:

At least they used to be?


Good to know that I need libwebsockets. I hope a version exists for msys2

On 25 April 2017 at 17:35, Ed Costello <phasereset@gmail.com> wrote:
The web socket opcodes are separate from the OSC opcodes, they also require libwebsockets v2 https://libwebsockets.org/
Ed


On 25 Apr 2017, at 14:41, Rory Walsh <rorywalsh@EAR.IE> wrote:

So it looks like it is part of the websocket stuff. If I enabled the building of these opcodes on Windows I get errors, posted below. I don't think I've ever built these before, do I need 3rd party libs? 

C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_finish':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:168:5: warning: implicit declaration of function 'lws_cancel_service' [-Wimplicit-function-declaration]
     lws_cancel_service(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:169:5: warning: implicit declaration of function 'lws_context_destroy' [-Wimplicit-function-declaration]
     lws_context_destroy(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_writeOnce':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:373:5: warning: implicit declaration of function 'lws_write' [-Wimplicit-function-declaration]
     lws_write(websocket, messageBuffer, inputArgument->bytesCount,
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleServerWritable':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: implicit declaration of function 'lws_get_protocol' [-Wimplicit-function-declaration]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:425:17: error: dereferencing pointer to incomplete type 'const struct lws_protocols'
     if (protocol->id / OUTPUT_OFFSET == 1) { // If it's an output argument
                 ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:427:7: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
       usleep(100);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:458:7: warning: implicit declaration of function 'lws_callback_on_writable' [-Wimplicit-function-declaration]
       lws_callback_on_writable(websocket);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleReceive':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:466:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: At top level:
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: 'enum lws_callback_reasons' declared inside parameter list
                               void *user, void *inputData, size_t inputDataSize)
                               ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:523:57: error: parameter 2 ('reason') has incomplete type
                               enum lws_callback_reasons reason,
                                                         ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'Websocket_callback':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:534:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:535:56: error: invalid type argument of '->' (have 'int')
     WebSocketOpcode *self = lws_get_protocol(websocket)->user;
                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_processThread':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:581:7: warning: implicit declaration of function 'lws_service' [-Wimplicit-function-declaration]
       lws_service(self->webSocket->context, 10);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:582:7: warning: implicit declaration of function 'lws_callback_on_writable_all_protocol' [-Wimplicit-function-declaration]
       lws_callback_on_writable_all_protocol(self->webSocket->context,
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:45: error: invalid use of undefined type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                             ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:72: error: dereferencing pointer to incomplete type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_initialiseWebSocket':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:596:37: error: invalid application of 'sizeof' to incomplete type 'struct lws_protocols'
       csound->Calloc(csound, sizeof(struct lws_protocols) * (argumentsCount + 1));
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:601:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name = self->inputArguments[i].name;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:602:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:603:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = INPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:604:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:605:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:611:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:613:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:614:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = OUTPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:615:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:616:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:622:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     self->webSocket->info.protocols = self->webSocket->protocols;
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:32: warning: implicit declaration of function 'lws_create_context' [-Wimplicit-function-declaration]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                                ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:30: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                              ^
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:62: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj' failed
make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj] Error 1
CMakeFiles/Makefile2:1402: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/all' failed
make[1]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/all] Error 2


On 25 April 2017 at 14:34, Rory Walsh <rorywalsh@ear.ie> wrote:
Is this new opcode part of osc.dll? I just built from the dev branch and Csound doesn't recognise it. I had to disable building of the web socket opcodes, I hope the new opcodes aren't part of that..?






Date2017-04-25 17:48
FromOeyvind Brandtsegg
SubjectRe: [Csnd-dev] OSCRaw...
AFAIK OSCraw is not part of websockets,
and I can confirm that I can build OSCraw here.
Victor knows more about the details.

2017-04-25 9:40 GMT-07:00 Rory Walsh <rorywalsh@ear.ie>:
At least they used to be?


Good to know that I need libwebsockets. I hope a version exists for msys2

On 25 April 2017 at 17:35, Ed Costello <phasereset@gmail.com> wrote:
The web socket opcodes are separate from the OSC opcodes, they also require libwebsockets v2 https://libwebsockets.org/
Ed


On 25 Apr 2017, at 14:41, Rory Walsh <rorywalsh@EAR.IE> wrote:

So it looks like it is part of the websocket stuff. If I enabled the building of these opcodes on Windows I get errors, posted below. I don't think I've ever built these before, do I need 3rd party libs? 

C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_finish':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:168:5: warning: implicit declaration of function 'lws_cancel_service' [-Wimplicit-function-declaration]
     lws_cancel_service(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:169:5: warning: implicit declaration of function 'lws_context_destroy' [-Wimplicit-function-declaration]
     lws_context_destroy(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_writeOnce':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:373:5: warning: implicit declaration of function 'lws_write' [-Wimplicit-function-declaration]
     lws_write(websocket, messageBuffer, inputArgument->bytesCount,
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleServerWritable':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: implicit declaration of function 'lws_get_protocol' [-Wimplicit-function-declaration]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:425:17: error: dereferencing pointer to incomplete type 'const struct lws_protocols'
     if (protocol->id / OUTPUT_OFFSET == 1) { // If it's an output argument
                 ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:427:7: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
       usleep(100);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:458:7: warning: implicit declaration of function 'lws_callback_on_writable' [-Wimplicit-function-declaration]
       lws_callback_on_writable(websocket);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleReceive':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:466:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: At top level:
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: 'enum lws_callback_reasons' declared inside parameter list
                               void *user, void *inputData, size_t inputDataSize)
                               ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:523:57: error: parameter 2 ('reason') has incomplete type
                               enum lws_callback_reasons reason,
                                                         ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'Websocket_callback':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:534:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:535:56: error: invalid type argument of '->' (have 'int')
     WebSocketOpcode *self = lws_get_protocol(websocket)->user;
                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_processThread':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:581:7: warning: implicit declaration of function 'lws_service' [-Wimplicit-function-declaration]
       lws_service(self->webSocket->context, 10);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:582:7: warning: implicit declaration of function 'lws_callback_on_writable_all_protocol' [-Wimplicit-function-declaration]
       lws_callback_on_writable_all_protocol(self->webSocket->context,
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:45: error: invalid use of undefined type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                             ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:72: error: dereferencing pointer to incomplete type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_initialiseWebSocket':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:596:37: error: invalid application of 'sizeof' to incomplete type 'struct lws_protocols'
       csound->Calloc(csound, sizeof(struct lws_protocols) * (argumentsCount + 1));
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:601:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name = self->inputArguments[i].name;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:602:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:603:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = INPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:604:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:605:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:611:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:613:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:614:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = OUTPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:615:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:616:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:622:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     self->webSocket->info.protocols = self->webSocket->protocols;
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:32: warning: implicit declaration of function 'lws_create_context' [-Wimplicit-function-declaration]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                                ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:30: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                              ^
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:62: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj' failed
make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj] Error 1
CMakeFiles/Makefile2:1402: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/all' failed
make[1]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/all] Error 2


On 25 April 2017 at 14:34, Rory Walsh <rorywalsh@ear.ie> wrote:
Is this new opcode part of osc.dll? I just built from the dev branch and Csound doesn't recognise it. I had to disable building of the web socket opcodes, I hope the new opcodes aren't part of that..?






--

Date2017-04-25 17:51
FromOeyvind Brandtsegg
SubjectRe: [Csnd-dev] OSCRaw...
I'm looking at it now,
and it is built as part of csound64.dll
Both OSCraw and the new OSCsend is there (not in osc.dll)

2017-04-25 9:47 GMT-07:00 Rory Walsh <rorywalsh@ear.ie>:
Ah Ok. So sockrec and socksend aren't using websockets. My bad. Cool. Now to figure out why Csound doesn't recognise OSCraw after rebuilding...

On 25 April 2017 at 17:44, Ed Costello <phasereset@gmail.com> wrote:
No, websockets and those other opcodes are different, I’ve never used those other ones, but the websocket opcodes are used to communicate with a running browser and send data back and forth using javascript on the browser side.
Ed


On 25 Apr 2017, at 17:40, Rory Walsh <rorywalsh@EAR.IE> wrote:

At least they used to be?


Good to know that I need libwebsockets. I hope a version exists for msys2

On 25 April 2017 at 17:35, Ed Costello <phasereset@gmail.com> wrote:
The web socket opcodes are separate from the OSC opcodes, they also require libwebsockets v2 https://libwebsockets.org/
Ed


On 25 Apr 2017, at 14:41, Rory Walsh <rorywalsh@EAR.IE> wrote:

So it looks like it is part of the websocket stuff. If I enabled the building of these opcodes on Windows I get errors, posted below. I don't think I've ever built these before, do I need 3rd party libs? 

C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_finish':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:168:5: warning: implicit declaration of function 'lws_cancel_service' [-Wimplicit-function-declaration]
     lws_cancel_service(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:169:5: warning: implicit declaration of function 'lws_context_destroy' [-Wimplicit-function-declaration]
     lws_context_destroy(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_writeOnce':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:373:5: warning: implicit declaration of function 'lws_write' [-Wimplicit-function-declaration]
     lws_write(websocket, messageBuffer, inputArgument->bytesCount,
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleServerWritable':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: implicit declaration of function 'lws_get_protocol' [-Wimplicit-function-declaration]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:425:17: error: dereferencing pointer to incomplete type 'const struct lws_protocols'
     if (protocol->id / OUTPUT_OFFSET == 1) { // If it's an output argument
                 ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:427:7: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
       usleep(100);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:458:7: warning: implicit declaration of function 'lws_callback_on_writable' [-Wimplicit-function-declaration]
       lws_callback_on_writable(websocket);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleReceive':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:466:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: At top level:
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: 'enum lws_callback_reasons' declared inside parameter list
                               void *user, void *inputData, size_t inputDataSize)
                               ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:523:57: error: parameter 2 ('reason') has incomplete type
                               enum lws_callback_reasons reason,
                                                         ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'Websocket_callback':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:534:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:535:56: error: invalid type argument of '->' (have 'int')
     WebSocketOpcode *self = lws_get_protocol(websocket)->user;
                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_processThread':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:581:7: warning: implicit declaration of function 'lws_service' [-Wimplicit-function-declaration]
       lws_service(self->webSocket->context, 10);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:582:7: warning: implicit declaration of function 'lws_callback_on_writable_all_protocol' [-Wimplicit-function-declaration]
       lws_callback_on_writable_all_protocol(self->webSocket->context,
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:45: error: invalid use of undefined type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                             ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:72: error: dereferencing pointer to incomplete type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_initialiseWebSocket':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:596:37: error: invalid application of 'sizeof' to incomplete type 'struct lws_protocols'
       csound->Calloc(csound, sizeof(struct lws_protocols) * (argumentsCount + 1));
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:601:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name = self->inputArguments[i].name;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:602:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:603:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = INPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:604:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:605:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:611:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:613:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:614:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = OUTPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:615:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:616:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:622:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     self->webSocket->info.protocols = self->webSocket->protocols;
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:32: warning: implicit declaration of function 'lws_create_context' [-Wimplicit-function-declaration]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                                ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:30: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                              ^
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:62: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj' failed
make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj] Error 1
CMakeFiles/Makefile2:1402: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/all' failed
make[1]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/all] Error 2


On 25 April 2017 at 14:34, Rory Walsh <rorywalsh@ear.ie> wrote:
Is this new opcode part of osc.dll? I just built from the dev branch and Csound doesn't recognise it. I had to disable building of the web socket opcodes, I hope the new opcodes aren't part of that..?








--

Date2017-04-25 18:13
FromRory Walsh
SubjectRe: [Csnd-dev] OSCRaw...

instr
1 OSCsend 1, "I.never.copied.csound64.dll.to.the.correct.location",7770, "/oh/crap", "balls", "shoot", 42, "it's working now!!" endin

On 25 April 2017 at 17:51, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
I'm looking at it now,
and it is built as part of csound64.dll
Both OSCraw and the new OSCsend is there (not in osc.dll)

2017-04-25 9:47 GMT-07:00 Rory Walsh <rorywalsh@ear.ie>:
Ah Ok. So sockrec and socksend aren't using websockets. My bad. Cool. Now to figure out why Csound doesn't recognise OSCraw after rebuilding...

On 25 April 2017 at 17:44, Ed Costello <phasereset@gmail.com> wrote:
No, websockets and those other opcodes are different, I’ve never used those other ones, but the websocket opcodes are used to communicate with a running browser and send data back and forth using javascript on the browser side.
Ed


On 25 Apr 2017, at 17:40, Rory Walsh <rorywalsh@EAR.IE> wrote:

At least they used to be?


Good to know that I need libwebsockets. I hope a version exists for msys2

On 25 April 2017 at 17:35, Ed Costello <phasereset@gmail.com> wrote:
The web socket opcodes are separate from the OSC opcodes, they also require libwebsockets v2 https://libwebsockets.org/
Ed


On 25 Apr 2017, at 14:41, Rory Walsh <rorywalsh@EAR.IE> wrote:

So it looks like it is part of the websocket stuff. If I enabled the building of these opcodes on Windows I get errors, posted below. I don't think I've ever built these before, do I need 3rd party libs? 

C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_finish':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:168:5: warning: implicit declaration of function 'lws_cancel_service' [-Wimplicit-function-declaration]
     lws_cancel_service(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:169:5: warning: implicit declaration of function 'lws_context_destroy' [-Wimplicit-function-declaration]
     lws_context_destroy(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_writeOnce':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:373:5: warning: implicit declaration of function 'lws_write' [-Wimplicit-function-declaration]
     lws_write(websocket, messageBuffer, inputArgument->bytesCount,
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleServerWritable':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: implicit declaration of function 'lws_get_protocol' [-Wimplicit-function-declaration]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:425:17: error: dereferencing pointer to incomplete type 'const struct lws_protocols'
     if (protocol->id / OUTPUT_OFFSET == 1) { // If it's an output argument
                 ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:427:7: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
       usleep(100);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:458:7: warning: implicit declaration of function 'lws_callback_on_writable' [-Wimplicit-function-declaration]
       lws_callback_on_writable(websocket);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleReceive':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:466:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: At top level:
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: 'enum lws_callback_reasons' declared inside parameter list
                               void *user, void *inputData, size_t inputDataSize)
                               ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:523:57: error: parameter 2 ('reason') has incomplete type
                               enum lws_callback_reasons reason,
                                                         ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'Websocket_callback':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:534:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:535:56: error: invalid type argument of '->' (have 'int')
     WebSocketOpcode *self = lws_get_protocol(websocket)->user;
                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_processThread':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:581:7: warning: implicit declaration of function 'lws_service' [-Wimplicit-function-declaration]
       lws_service(self->webSocket->context, 10);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:582:7: warning: implicit declaration of function 'lws_callback_on_writable_all_protocol' [-Wimplicit-function-declaration]
       lws_callback_on_writable_all_protocol(self->webSocket->context,
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:45: error: invalid use of undefined type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                             ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:72: error: dereferencing pointer to incomplete type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_initialiseWebSocket':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:596:37: error: invalid application of 'sizeof' to incomplete type 'struct lws_protocols'
       csound->Calloc(csound, sizeof(struct lws_protocols) * (argumentsCount + 1));
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:601:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name = self->inputArguments[i].name;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:602:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:603:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = INPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:604:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:605:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:611:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:613:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:614:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = OUTPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:615:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:616:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:622:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     self->webSocket->info.protocols = self->webSocket->protocols;
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:32: warning: implicit declaration of function 'lws_create_context' [-Wimplicit-function-declaration]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                                ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:30: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                              ^
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:62: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj' failed
make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj] Error 1
CMakeFiles/Makefile2:1402: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/all' failed
make[1]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/all] Error 2


On 25 April 2017 at 14:34, Rory Walsh <rorywalsh@ear.ie> wrote:
Is this new opcode part of osc.dll? I just built from the dev branch and Csound doesn't recognise it. I had to disable building of the web socket opcodes, I hope the new opcodes aren't part of that..?








--


Date2017-04-25 18:50
FromOeyvind Brandtsegg
SubjectRe: [Csnd-dev] OSCRaw...
Halleluja!

2017-04-25 10:13 GMT-07:00 Rory Walsh <rorywalsh@ear.ie>:

instr
1 OSCsend 1, "I.never.copied.csound64.dll.to.the.correct.location",7770, "/oh/crap", "balls", "shoot", 42, "it's working now!!" endin

On 25 April 2017 at 17:51, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
I'm looking at it now,
and it is built as part of csound64.dll
Both OSCraw and the new OSCsend is there (not in osc.dll)

2017-04-25 9:47 GMT-07:00 Rory Walsh <rorywalsh@ear.ie>:
Ah Ok. So sockrec and socksend aren't using websockets. My bad. Cool. Now to figure out why Csound doesn't recognise OSCraw after rebuilding...

On 25 April 2017 at 17:44, Ed Costello <phasereset@gmail.com> wrote:
No, websockets and those other opcodes are different, I’ve never used those other ones, but the websocket opcodes are used to communicate with a running browser and send data back and forth using javascript on the browser side.
Ed


On 25 Apr 2017, at 17:40, Rory Walsh <rorywalsh@EAR.IE> wrote:

At least they used to be?


Good to know that I need libwebsockets. I hope a version exists for msys2

On 25 April 2017 at 17:35, Ed Costello <phasereset@gmail.com> wrote:
The web socket opcodes are separate from the OSC opcodes, they also require libwebsockets v2 https://libwebsockets.org/
Ed


On 25 Apr 2017, at 14:41, Rory Walsh <rorywalsh@EAR.IE> wrote:

So it looks like it is part of the websocket stuff. If I enabled the building of these opcodes on Windows I get errors, posted below. I don't think I've ever built these before, do I need 3rd party libs? 

C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_finish':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:168:5: warning: implicit declaration of function 'lws_cancel_service' [-Wimplicit-function-declaration]
     lws_cancel_service(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:169:5: warning: implicit declaration of function 'lws_context_destroy' [-Wimplicit-function-declaration]
     lws_context_destroy(self->webSocket->context);
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_writeOnce':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:373:5: warning: implicit declaration of function 'lws_write' [-Wimplicit-function-declaration]
     lws_write(websocket, messageBuffer, inputArgument->bytesCount,
     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleServerWritable':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: implicit declaration of function 'lws_get_protocol' [-Wimplicit-function-declaration]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:423:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:425:17: error: dereferencing pointer to incomplete type 'const struct lws_protocols'
     if (protocol->id / OUTPUT_OFFSET == 1) { // If it's an output argument
                 ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:427:7: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
       usleep(100);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:458:7: warning: implicit declaration of function 'lws_callback_on_writable' [-Wimplicit-function-declaration]
       lws_callback_on_writable(websocket);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_handleReceive':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:466:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: At top level:
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: 'enum lws_callback_reasons' declared inside parameter list
                               void *user, void *inputData, size_t inputDataSize)
                               ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:524:31: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:523:57: error: parameter 2 ('reason') has incomplete type
                               enum lws_callback_reasons reason,
                                                         ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'Websocket_callback':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:534:44: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:535:56: error: invalid type argument of '->' (have 'int')
     WebSocketOpcode *self = lws_get_protocol(websocket)->user;
                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_processThread':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:581:7: warning: implicit declaration of function 'lws_service' [-Wimplicit-function-declaration]
       lws_service(self->webSocket->context, 10);
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:582:7: warning: implicit declaration of function 'lws_callback_on_writable_all_protocol' [-Wimplicit-function-declaration]
       lws_callback_on_writable_all_protocol(self->webSocket->context,
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:45: error: invalid use of undefined type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                             ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:583:72: error: dereferencing pointer to incomplete type 'struct lws_protocols'
                                             &self->webSocket->protocols[0]);
                                                                        ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c: In function 'WebSocketOpcode_initialiseWebSocket':
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:596:37: error: invalid application of 'sizeof' to incomplete type 'struct lws_protocols'
       csound->Calloc(csound, sizeof(struct lws_protocols) * (argumentsCount + 1));
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:601:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name = self->inputArguments[i].name;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:602:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:603:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = INPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:604:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:605:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:611:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].name =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:613:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].callback = Websocket_callback;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:614:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].id = OUTPUT_OFFSET + i;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:615:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].user = self;
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:616:7: error: invalid use of undefined type 'struct lws_protocols'
       self->webSocket->protocols[argumentIndex].per_session_data_size =
       ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:622:37: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     self->webSocket->info.protocols = self->webSocket->protocols;
                                     ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:32: warning: implicit declaration of function 'lws_create_context' [-Wimplicit-function-declaration]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                                ^
C:/Users/rory/sourcecode/csound64/csound/Opcodes/websockets/WebSocketOpcode.c:627:30: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                              ^
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:62: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj' failed
make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj] Error 1
CMakeFiles/Makefile2:1402: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/all' failed
make[1]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/all] Error 2


On 25 April 2017 at 14:34, Rory Walsh <rorywalsh@ear.ie> wrote:
Is this new opcode part of osc.dll? I just built from the dev branch and Csound doesn't recognise it. I had to disable building of the web socket opcodes, I hope the new opcodes aren't part of that..?








--




--