<!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/4.2.2">
</HEAD>
<BODY>
El vie, 12-06-2015 a las 22:23 +0700, sumin@trus.co.id escribió:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hello,
</PRE>
</BLOCKQUOTE>
<PRE>

</PRE>
Hello Su Min,<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
im learning nopoll for my application, i plan to use websocket in 
android/ios using ionic framework (html5/js), so i use nopoll for 
websocket server only. if im not using TLS, the server run well, but if 
i try use TLS, the connection wont established.
</PRE>
</BLOCKQUOTE>
<BR>
Ok,<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
i hope this info have some clue:
1. i compare packet between my application and websocket.org using 
wireshark. i think the difference begins at "client hello", wireshark 
didnt capture any "client hello" from my application
2. im using blocking socket nopoll_conn_set_sock_block(listener_sock, 
nopoll_true), and later i accept with nopoll_conn_accept(ctx, listener).
</PRE>
</BLOCKQUOTE>
<PRE>

</PRE>
Ok, I think the problem, with 99% of probability is that you are using a certificate<BR>
that is not valid (signed by a trusted party like Twathe, Geotrust and so forth...). That<BR>
can explain why you are getting a failure with your server noPoll app and the server<BR>
provided by websocket.org<BR>
<BR>
If this is the case, the only solution is to a) review your client TLS code to disable <BR>
certificate verification before connecting... or b) have a signed certificate that is recognized<BR>
by your mobile app <BR>
<BR>
Going a) would work for your dev test, but you'll need b) for production <BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
1. can i have some sample code about server with TLS?
</PRE>
</BLOCKQUOTE>
<BR>
Sure, see full working examples at the regression test code:<BR>
<BR>
<A HREF="https://dolphin.aspl.es/svn/publico/nopoll/trunk/test/nopoll-regression-client.c">https://dolphin.aspl.es/svn/publico/nopoll/trunk/test/nopoll-regression-client.c</A><BR>
<A HREF="https://dolphin.aspl.es/svn/publico/nopoll/trunk/test/nopoll-regression-listener.c">https://dolphin.aspl.es/svn/publico/nopoll/trunk/test/nopoll-regression-listener.c</A><BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
2. how to show some log/error code from nopoll, i read everyone show 
nopoll log/error, but i cant find one?
</PRE>
</BLOCKQUOTE>
<PRE>

</PRE>
See <A HREF="http://www.aspl.es/nopoll/html/group__nopoll__log.html">http://www.aspl.es/nopoll/html/group__nopoll__log.html</A><BR>
<BR>
Alternatively, assuming you are running a noPoll listener app in a linux or similar<BR>
you can use:<BR>
<BR>
>> NOPOLL_DEBUG=1 NOPOLL_DEBUG_COLOR=1 ./your-app<BR>
<BR>
Best Regards,<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
thanks in advance

Regards,

Su Min
_______________________________________________
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@aspl.es">francis@aspl.es</A>>
ASPL
91 134 14 22 - 91 134 14 45 - 91 116 07 57

AVISO LEGAL
 
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).
 
ASPL garantiza que los datos serán tratados con la finalidad de mantener
las oportunas relaciones comerciales o promocionales con usted o la
entidad que usted representa. 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>