<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Hi Hakim,<BR>
<BR>
Not sure why are you getting that error. Possibly, you can use strerror (errno) to<BR>
get the textual error that is behind that 57 error code. Certainly, the error is happening<BR>
because you are not able to send that content or because the remote server is <BR>
rejecting the content received...<BR>
<BR>
Do you have a test case that can be run to reproduce the code? <BR>
<BR>
About the missing method nopoll_conn_new_opts, what is the exact error you<BR>
are getting? Which compiler? <BR>
<BR>
Best Regards,<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
Hi,<BR>
<BR>
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.<BR>
<BR>
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. <BR>
<BR>
To ease up the work I decided to use a library for that, I again fetched the internet and found two really relevant libraries:<BR>
<BR>
<BR>
The <A HREF="http://wslay.sourceforge.net/">WSlay</A> library, which seems to work well but doesn't run under OSX due to the epoll.h include which is not supported by apple. <BR>
<BR>
The <A HREF="http://www.aspl.es/nopoll/">NoPoll</A> library, which I think is the best one to use.<BR>
<BR>
The problem is that I can't make it perform right, I always get a failed connections with the error number 57 : <BR>
<BR>
<B><I>- Failed to send websocket init message, error code was: 57 (2), closing session</I></B><BR>
<BR>
The thing is that i don't know what is an <FONT COLOR="#222222">error</FONT> 57, but i suspect that the header is not complete for the server that i use (amazon ec2).<BR>
<BR>
<FONT COLOR="#222222">So i read the complete documentation and bumped into this method :</FONT><BR>
<BR>
noPollconn* nopoll_conn_new_opts(ctx, opts, host_ip, host_port, host_name...);<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
But when i try to use it i get a missing method error.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Am i supposed to use another method, or maybe somebody have already had this kind of problem.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Any help will be much appreciated as it will help me finalising the library :).
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Thank you for your time and have a great day :).
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
noPoll mailing list
<A HREF="mailto:noPoll@lists.aspl.es">noPoll@lists.aspl.es</A>
<A HREF="http://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll">http://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll</A>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
--
Francis Brosnan Blázquez <<A HREF="mailto:francis.brosnan@aspl.es">francis.brosnan@aspl.es</A>>
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).
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>