[Libwebsockets] How to resolve this error -- too many arguments to libwebsockets_serve_http_file()

Andy Green andy at warmcat.com
Mon Apr 21 00:47:19 CEST 2014



On 04/20/2014 12:51 PM, Dinesh Guleria wrote:
> Is their some read me document to describe what is role of each API :---

What you're looking for is autogenerated by cmake from comments in the 
source each time you run cmake.

Look in your build dir, eg, ./build/doc/libwebsockets-api-doc.html

> http://warmcat.com/libwebsockets/2013/01/12/libwebsockets-org.html
> http://libwebsockets.org/trac/libwebsockets

I'll update this, the server changed a while ago and this dropped off.

-Andy

>
> Did not found here .. ?
>
>
> On Sun, Apr 20, 2014 at 10:16 AM, Dinesh Guleria <din.gulu.er at gmail.com
> <mailto:din.gulu.er at gmail.com>> wrote:
>
>     should i remove this 5th argument NULL ?
>
>     //DInesh
>
>
>     On Sat, Apr 19, 2014 at 11:16 PM, Dinesh Guleria
>     <din.gulu.er at gmail.com <mailto:din.gulu.er at gmail.com>> wrote:
>
>         See the attached printshot .. following is the number arguments
>         took by this system call.
>         /usr/local/inclue/libwebsockets.h
>
>
>         On Sat, Apr 19, 2014 at 10:42 PM, Dinesh Guleria
>         <din.gulu.er at gmail.com <mailto:din.gulu.er at gmail.com>> wrote:
>
>             Hi ,
>
>             I am facing error due to the compatibility of function call ,
>             In our project we are using function call --
>             libwebsockets_serve_http_file() with five arguments.
>
>             Now how to resolve this error :---
>             to many argument to function int libwebsockets_serve_http_file()
>
>             Our file, give 5 argument to this system call
>             libwebsockets_serve_http_file :----
>             https://github.com/grodansparadis/vscp_software/blob/master/src/vscp/common/controlobject.cpp
>
>             libwebsockets_serve_http_file(context,
>                              wsi,
>                              path.ToAscii(),
>
>                              mime.ToAscii(),
>             NULL )
>
>
>             Please suggest which older version of libwebsocket uses 5
>             argumnets to function call libwebsockets_serve_http_file()
>             so that i can use that library to resolve this error ?
>
>
>
>
>
>             Or if some alternative way is their to resolve this error ?
>
>
>
>             Regards,
>             Dinesh
>
>
>
>
>
>
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>



More information about the Libwebsockets mailing list