Comments (16)
@Dimon4eg / I'll write notes here about what was broken on Windows, if you are interested in fixing this.
One thing that is broken but isn't mandatory, is the Interrupt system that works with pipes, since pipe don't work the same way on Windows, and that we can't get a file descriptor that we can call 'select' on. But the interrupt system is ok for just closing the socket, as Windows will wake up from select when this happen.
The problem I had was that the most basic test (SocketTest ?) would not work.
Maybe I'd start with the ws_connect interactive program and get it to work, and have it run against a node.js or python server first.
from ixwebsocket.
Something else that is required is to have a zlib .dll in the current folder where the executable runs, or something like that. I have one that works in the third_party folder.
from ixwebsocket.
@bsergean why do we use zlib as dynamic and not as static lib?
from ixwebsocket.
No good reason. The only .lib I found on the internet were just the windows stub thing that works with a dll. If we can compile zlib ourself of find an existing standalone zlib then yes for sure we should use a static lib for zlib.
from ixwebsocket.
Note that I'm trying to make the AppVeyor Windows build to work again (a least the most basic parts). It isn't hooked to the MachineZone/IXWebSocket for permission reason (need to work this out), but it is linked to my fork (bsergean).
from ixwebsocket.
Okay
from ixwebsocket.
I'm having very basic problems, just running CMake. I should revert to the old python script I had ages ago which was working on Windows.
from ixwebsocket.
What problems do you have with CMake?
from ixwebsocket.
Here's the error. It looks like cmake isn't executed. That folder should be there also.
[vcvarsall.bat] Environment initialized for: 'x64'
python test/run.py
NMAKE : U1052: file 'C:\projects\ixwebsocket\test\build\Windows' not found
Stop.
Running
cmake -H. -BC:\projects\ixwebsocket\test\build\Windows -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G"NMake Makefiles"
Unittest timed out
Running nmake -C C:\projects\ixwebsocket\test\build\Windows
Unittest timed out
cmd nmake -C C:\projects\ixwebsocket\test\build\Windows failed with error code 2
Traceback (most recent call last):
File "test/run.py", line 518, in <module>
File "test/run.py", line 514, in main
File "test/run.py", line 377, in run
File "test/run.py", line 85, in runCommand
AssertionError
Command exited with code 1
from ixwebsocket.
Debugging without a physical machine is really painful / tedious btw. I should get a win box or a least a VM.
from ixwebsocket.
I have not tried test/run.py
.
Just building using CMake.
NMAKE : U1052: file 'C:\projects\ixwebsocket\test\build\Windows' not found
You have problem with folders
from ixwebsocket.
Hey @Dimon4eg one thing you should know if you are running into problems with the windows port, is that on Windows 'socket connect' failures behaves differently, and set the exception fds in select when the connection fails.
I don't know how much sockets are working for you on Windows at this point. Also we might need a different python test script because it looks like out of tree builds don't work on Windows.
I'm curious about what is working for you on Windows. I might get a windows laptop from a co-worker and will be able to help one day hopefully.
from ixwebsocket.
Yes, on Windows it doesn't work currently.
Currently I've no time to go deep and fix it.
from ixwebsocket.
Ok. Same with me I'm quite busy those days. Thanks at least for getting the build to work.
from ixwebsocket.
Many tests pass now on Windows except these two:
- IXWebSocketPingTimeoutTest
- cmd_websocket_chat
from ixwebsocket.
Closing this ticket, we can reopen 'per unittest' tickets.
from ixwebsocket.
Related Issues (20)
- Cannot link against IXWebsocket HOT 1
- HTTPServer questions? HOT 2
- Question about weak_ptr in API HOT 1
- Source code release v11.4.4 contains an error in IXSocketMbedTLS.cpp line 52 HOT 3
- Can I use IXHttpClient to upload files to server? HOT 1
- each http request cause socket reconnection HOT 1
- [BUG] Does not receive a close or error message. and the mapping configured in the host file does not take effect
- Memory leak in proxy code HOT 4
- Universal Windows application TLS certificate issue HOT 2
- UWP App undefined method PathMatchSpecA HOT 2
- Client connection closed immediately on re-connection after ping timeout HOT 1
- Disable ZLIB when install as vcpkg package? HOT 1
- Build error. (mbedtls) HOT 2
- [Feature Request] Add support for OpenSSL SSLKEYLOGFILE HOT 9
- Unable to connect to ws endpoint behind standard AWS load balancer (ALB) HOT 8
- CMake packaging doesn't support example usage HOT 2
- Possible unintentional copying inside Websocket#connect function
- Possible unintentional copying inside Websocket#connect function HOT 1
- [enhancement] add ability to remove default headers HOT 2
- A check for 8-byte atomics is needed, as 32-bit platforms may require `libatomic` linking HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ixwebsocket.