[noPoll] [nopoll_conn_new_opts method missing, and error 57]
Francis Brosnan Blázquez
francis en aspl.es
Mar Mayo 26 17:30:04 CEST 2015
Hi Hakim,
Not sure why are you getting that error. Possibly, you can use strerror
(errno) to
get the textual error that is behind that 57 error code. Certainly, the
error is happening
because you are not able to send that content or because the remote
server is
rejecting the content received...
Do you have a test case that can be run to reproduce the code?
About the missing method nopoll_conn_new_opts, what is the exact error
you
are getting? Which compiler?
Best Regards,
> Hi,
>
> my name is Hakim i'am a C developper and I'am trying to build a open
> source Cometd Library for C developers, to be able to run a client
> under barely any given device.
>
> I manage to complete the handshake and data transfer with the
> longPolling technique, the next step is logically to give the option
> to the user to choose a Websocket connection.
>
> To ease up the work I decided to use a library for that, I again
> fetched the internet and found two really relevant libraries:
>
>
> The WSlay library, which seems to work well but doesn't run under OSX
> due to the epoll.h include which is not supported by apple.
>
> The NoPoll library, which I think is the best one to use.
>
> The problem is that I can't make it perform right, I always get a
> failed connections with the error number 57 :
>
> - Failed to send websocket init message, error code was: 57 (2),
> closing session
>
> The thing is that i don't know what is an error 57, but i suspect that
> the header is not complete for the server that i use (amazon ec2).
>
> So i read the complete documentation and bumped into this method :
>
> noPollconn* nopoll_conn_new_opts(ctx, opts, host_ip, host_port,
> host_name...);
>
>
> But when i try to use it i get a missing method error.
>
>
> Am i supposed to use another method, or maybe somebody have already
> had this kind of problem.
>
>
> Any help will be much appreciated as it will help me finalising the
> library :).
>
>
> Thank you for your time and have a great day :).
>
> _______________________________________________
> noPoll mailing list
> noPoll en lists.aspl.es
> http://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll
--
Francis Brosnan Blázquez <francis.brosnan en aspl.es>
ASPL
91 134 14 22 - 91 134 14 45 - 91 116 07 57
AVISO LEGAL
Este mensaje se dirige exclusivamente a su destinatario. Los datos
incluidos en el presente correo son confidenciales y sometidos a secreto
profesional, se prohíbe divulgarlos, en virtud de las leyes vigentes. Si
usted no lo es y lo ha recibido por error o tiene conocimiento del mismo
por cualquier motivo, le rogamos que nos lo comunique por este medio y
proceda a destruirlo o borrarlo.
En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
diciembre, de Protección de Datos de Carácter Personal, le informamos de
que sus datos de carácter personal, recogidos de fuentes accesibles al
público o datos que usted nos ha facilitado previamente, proceden de
bases de datos propiedad de Advanced Software Production Line, S.L.
(ASPL). No obstante, usted puede ejercitar sus derechos de acceso,
rectificación, cancelación y oposición dispuestos en la mencionada Ley
Orgánica, notificándolo por escrito a:
ASPL - Protección Datos, C/Antonio Suárez 10 A-102, 28802, Alcalá de
Henares (Madrid).
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.aspl.es/pipermail/nopoll/attachments/20150526/dd970b82/attachment.html>
Más información sobre la lista de distribución noPoll