<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Maybe you understood it wrong .. it’s not a http connection. It’s a simple socket connection .. so no handshake no nothing.<div class="">Check the example i pasted! I think we are going to use XNIO for that .. not sure if we should reuse the undertow XNIO context or create a new one.</div><div class=""><br class=""></div><div class="">Sascha</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 27 Oct 2016, at 12:52, Tomaž Cerar &lt;<a href="mailto:tomaz.cerar@gmail.com" class="">tomaz.cerar@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class="">Best to write impl of HttpHandler and register it in the chain.<br class=""></div>This is really simple to do, especially with that simple serving requirements.<br class=""><br class=""><br class="">--<br class=""></div>tomaz<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Oct 26, 2016 at 11:54 PM, Sascha Sadat-Guscheh <span dir="ltr" class="">&lt;<a href="mailto:kid@bitkid.com" target="_blank" class="">kid@bitkid.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi!<div class=""><br class=""></div><div class="">As part of our current project (which heavily uses undertow as http server) we need to implement a simple flash policy server.</div><div class="">This server is basically just a simple SocketServer which returns a small XML fragment</div><div class="">(java example code in the first answer here&nbsp;<a href="http://stackoverflow.com/questions/2569863/trouble-creating-a-java-policy-server-for-a-simple-flash-app" target="_blank" class="">http://stackoverflow.com/<wbr class="">questions/2569863/trouble-<wbr class="">creating-a-java-policy-server-<wbr class="">for-a-simple-flash-app</a>)</div><div class=""><br class=""></div><div class="">My question is, how can i implement this reusing the undertow infrastructure. Directly access XNIO? What would you suggest?</div><div class=""><br class=""></div><div class="">Thanks, Sascha</div><div class=""><br class=""></div></div><br class="">______________________________<wbr class="">_________________<br class="">
undertow-dev mailing list<br class="">
<a href="mailto:undertow-dev@lists.jboss.org" class="">undertow-dev@lists.jboss.org</a><br class="">
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank" class="">https://lists.jboss.org/<wbr class="">mailman/listinfo/undertow-dev</a><br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>