Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5370

Use WebSocket Library

$
0
0

Hi,

I'm trying to set up a webSocket client in my LabWindows project.

 

So far I tried 2 different ways.

 

The first was to include an external library (libWebSocket for example). So I've added the .lib file to the project ant the include file corresponding.

 

But In all the library I've found, the problem was always about files that are not installed on windows (like io.h, strings.h or fcntl.h for example).

And then I found that windows SDK offers a WebSocket library (http://zone.ni.com/reference/en-XX/help/370051AC-01/cvi/programmerref/calling_windows_sdk_functions/)

 

So I tried to use it in my project.

#include <windows.h>
#include <websocket.h>

And it compiles. But when I declare my handler variable of type WEB_SOCKET_HANDLE, the compilation fail and it tells me :

error: unknown type name 'WEB_SOCKET_HANDLE'

So i'm kinda stuck, does anyone have faced the same issue and overcame it ?


Viewing all articles
Browse latest Browse all 5370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>