port = boost::lexical_cast<int>((*i).second);
}
}
- context = libwebsocket_create_context(port, interface.c_str(), protocollist,libwebsocket_internal_extensions,ssl_cert_path, ssl_key_path, -1, -1, options);
+ context = libwebsocket_create_context(port, interface.c_str(), protocollist, ssl_cert_path, ssl_key_path, -1, -1, options);
}
void WebSocketSinkManager::addSingleShotSink(libwebsocket* socket, VehicleProperty::Property property,string id)
{
//printf("Client writable\n");
break;
}
- case LWS_CALLBACK_SERVER_WRITEABLE:
- {
- //printf("Server writable\n");
- break;
- }
-
case LWS_CALLBACK_RECEIVE:
{
//printf("Data Received: %s\n",(char*)in);
}
break;
}
- case LWS_CALLBACK_CLIENT_CONFIRM_EXTENSION_SUPPORTED:
- {
- //printf("Requested extension: %s\n",(char*)in);
- return 0;
- break;
- }
case LWS_CALLBACK_ADD_POLL_FD:
{
//Add a FD to the poll list.
clientConnected = false;
source = this;
m_re = re;
- context = libwebsocket_create_context(CONTEXT_PORT_NO_LISTEN, NULL,protocols, libwebsocket_internal_extensions,NULL, NULL, -1, -1, 0);
+ context = libwebsocket_create_context(CONTEXT_PORT_NO_LISTEN, NULL,protocols, NULL, NULL, -1, -1, 0);
setConfiguration(config);
re->setSupported(supported(), this);