<p>Do you mean that you want something else than a delimiter? What about a length field? </p>
<p>--<br>
Marc-AndrĂ© Laverdiere<br>
Sent from a mobile device. Please excuse the brevity </p>
<div class="gmail_quote">On 31-Aug-2011 3:38 AM, &quot;chudak&quot; &lt;<a href="mailto:meadandale@gmail.com">meadandale@gmail.com</a>&gt; wrote:<br type="attribution">&gt; <br>&gt; fwachs wrote:<br>&gt;&gt; <br>&gt;&gt; Well, i do but i don&#39;t want to hard code it like that!<br>
&gt;&gt; <br>&gt; <br>&gt; Hard code it /like what/? You haven&#39;t shown any sample code to indicate what<br>&gt; you have even tried so far, what your approach is or what your api looks<br>&gt; like.<br>&gt; <br>&gt; You an easily have whichever object is the target of your client&#39;s<br>
&gt; interation with the channel add the terminator for you, e.g.<br>&gt; <br>&gt; public void write(String response)<br>&gt; {<br>&gt;     channel.write(s);<br>&gt;     channel.write(&quot;\n&quot;);<br>&gt; }<br>&gt; <br>
&gt; Then your client just invokes write(...) when it wants to write to the<br>&gt; channel and this helper object adds the delimiter.<br>&gt; <br>&gt; --<br>&gt; View this message in context: <a href="http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Response-delimiter-tp6742766p6744291.html">http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Response-delimiter-tp6742766p6744291.html</a><br>
&gt; Sent from the Netty User Group mailing list archive at Nabble.com.<br>&gt; _______________________________________________<br>&gt; netty-users mailing list<br>&gt; <a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-users">https://lists.jboss.org/mailman/listinfo/netty-users</a><br></div>