<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, "chudak" <<a href="mailto:meadandale@gmail.com">meadandale@gmail.com</a>> wrote:<br type="attribution">> <br>> fwachs wrote:<br>>> <br>>> Well, i do but i don't want to hard code it like that!<br>
>> <br>> <br>> Hard code it /like what/? You haven't shown any sample code to indicate what<br>> you have even tried so far, what your approach is or what your api looks<br>> like.<br>> <br>> You an easily have whichever object is the target of your client's<br>
> interation with the channel add the terminator for you, e.g.<br>> <br>> public void write(String response)<br>> {<br>> channel.write(s);<br>> channel.write("\n");<br>> }<br>> <br>
> Then your client just invokes write(...) when it wants to write to the<br>> channel and this helper object adds the delimiter.<br>> <br>> --<br>> 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>
> Sent from the Netty User Group mailing list archive at Nabble.com.<br>> _______________________________________________<br>> netty-users mailing list<br>> <a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/netty-users">https://lists.jboss.org/mailman/listinfo/netty-users</a><br></div>