[Libwebsockets] Problem when running on ARM platform

Halpin, Joe jhalpin at navigationsolutions.com
Fri Nov 7 21:53:13 CET 2014


I have a test program written to run on both i386 and ARM, which behaves differently from one platform to the other (it's a pared down version of test-echo.c). I'm not using command line options, so I have this as part of the variable setup:

#ifdef __ARM_EABI__
    char address[256] = "";
    char interface_name[128] = "usb0";
    char address[256] = "echo.websocket.org";
    char interface_name[128] = "eth0";

The program works perfectly on i386, but apparently does nothing on my ARM platform. I added some debug output, but it just shows the following

[411859:4774] NOTICE: Initial logging level 7
[411859:4777] NOTICE: Library version: 1.3 unknown-build-hash
[411859:4777] NOTICE: IPV6 not compiled in
[411859:4778] NOTICE: libev support not compiled in
[411859:4785] NOTICE:  static allocation: 4472 + (12 x 1024 fds) = 16760 bytes
[411859:4789] NOTICE:  canonical_hostname = production-
[411859:4789] NOTICE:  per-conn mem: 140 + 1606 headers + protocol rx buf
Calling libwebsocket_client_connect
wsi created
at bail:
[411860:5119] NOTICE: libwebsocket_context_destroy

The #ifdef block is the only difference between the two versions. Does this ring a bell with anyone here?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20141107/860047a5/attachment.html>

More information about the Libwebsockets mailing list