When the libraries of libwebsockets 3.1 are built, some demo programs are built all together. They are shown as below:

Build libraries of libwebsockets 3.1 with Visual Studio 2010 on 64-bit Windows 7 (3)

    The purpose of 'libwebsockets-test-server.exe' is to run a Websocket server. How to execute it is introduced as follows:
1. Create the sub-folder 'libwebsockets' below the folder ' C:\Program Files (x86) '.
2. Copy the sub-folder ' C:\Temp\libwebsokets\libwebsockets\build\bin\share' to the path ' C:\Program Files (x86)\libwebsockets '.

 Build libraries of libwebsockets 3.1 with Visual Studio 2010 on 64-bit Windows 7 (3)

3. Run the executable file: 'C:\Temp\libwebsokets\libwebsockets\build\bin\Release\libwebsockets-test-server.exe ' .
4. Open the Chrome browser, and visit the website: http://127.0.0.1:7681. The webpage is like the following:

Build libraries of libwebsockets 3.1 with Visual Studio 2010 on 64-bit Windows 7 (3)

 

Build libraries of libwebsockets 3.1 with Visual Studio 2010 on 64-bit Windows 7 (3)

 

    The default port is 7681. You can assign another port such as 7511 by using the instruction:
libwebsockets-test-server --port=7511
    You can start a Websocket server over TLS by using '--ssl' argument, such as:
libwebsockets-test-server --port=7681 --ssl

    The SSL/TLS configuration of the current IE 11 browser is:

Build libraries of libwebsockets 3.1 with Visual Studio 2010 on 64-bit Windows 7 (3)

 

    Open the IE browser, and visit the website https://127.0.0.1:7681. The webpage is like the following:

Build libraries of libwebsockets 3.1 with Visual Studio 2010 on 64-bit Windows 7 (3)

 

    Continue browsing, the webpage is:
Build libraries of libwebsockets 3.1 with Visual Studio 2010 on 64-bit Windows 7 (3)

    The website https://127.0.0.1:7681 cannot be opened by Chrome browser even if the configuration item 'TLS 1.3 downgrade hardening ' is set to 'Disabled' in page ' chrome://flags/'. The reason is unknown.

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2021-08-30
  • 2022-12-23
猜你喜欢
  • 2021-09-28
  • 2021-08-03
  • 2021-12-16
  • 2021-06-08
  • 2021-11-08
  • 2021-07-15
相关资源
相似解决方案