[Libwebsockets] Regarding Android based Websockets Server Library

Akhileshwar Mishra mishra_akhileshwar at yahoo.com
Tue Mar 5 18:33:29 CET 2013

Thanks a lot Mr Gregory for sharing the details.
Actually i'm new to Android platform so i request you to share some more details about the following if possible,

1. Source path for all the Websocket library files into Android-ndk folder structure.
2. Apart form building *.c and *.h files do we have some other dependencies for Android ndk-build?

Thanks a lot in advance!

Best Regards,

 From: Gregory Junker <ggjunker at gmail.com>
To: Andy Green (林安廸) <andy at warmcat.com> 
Cc: Akhileshwar Mishra <mishra_akhileshwar at yahoo.com>; libwebsockets <Libwebsockets at ml.libwebsockets.org> 
Sent: Tuesday, 5 March 2013 10:50 AM
Subject: Re: [Libwebsockets] Regarding Android based Websockets Server Library

(resending to whole list)

I had no problems. Simply make an Android.mk that references all of the source files in lib/. For example, mine looks like this:

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := libwebsockets
LOCAL_C_INCLUDES:= $(LOCAL_PATH)/../../../shared/
    ../../../shared/libwebsockets/base64-decode.c \
    ../../../shared/libwebsockets/client.c \
    ../../../shared/libwebsockets/client-handshake.c \
    ../../../shared/libwebsockets/client-parser.c \
    ../../../shared/libwebsockets/daemonize.c \
    ../../../shared/libwebsockets/extension.c \
    ../../../shared/libwebsockets/extension-deflate-frame.c \
    ../../../shared/libwebsockets/extension-deflate-stream.c \
    ../../../shared/libwebsockets/getifaddrs.c \
    ../../../shared/libwebsockets/handshake.c \
    ../../../shared/libwebsockets/libwebsockets.c \
    ../../../shared/libwebsockets/md5.c \
    ../../../shared/libwebsockets/minilex.c \
    ../../../shared/libwebsockets/output.c \
    ../../../shared/libwebsockets/parsers.c \


On Mon, Mar 4, 2013 at 4:35 PM, "Andy Green (林安廸)" <andy at warmcat.com> wrote:

On 05/03/13 00:22, the mail apparently from Akhileshwar Mishra included:
>Dear Mr. Andy,
>>I'm Akhilesh from Bangalore, India.
>>I'd a requirement to implement Websocket for our Android based hardware.
>>While browsing through several info on Websocket(available on internet)
>>i found that you've provided a Websocket library freely over the internet.
>>But if i am correct your Library is Linux based, i wanted to port the
>>Library in Android NDK i.e. library must be written in C language itself
>>  but can be integrated to Android through NDK.
>>Request you to provide some details for this if available. It will be
>>great for help for me.
>AFAIK two or three people have made an NDK build of libwebsockets, but they have not shared any changes needed for build.
>So I assume that it's fairly straightforward to build against Bionic, or at least was.
>Your best bet is to give it a try, it has been built for ARM and MIPS successfully both cross and native build on glibc and uclibc.
>If you find anything we should do to make it work better, please send patches ^^
>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20130306/9d20e8f5/attachment.html>

More information about the Libwebsockets mailing list