<a href="http://www.jboss.org/netty/documentation">http://www.jboss.org/netty/documentation</a><br><br><div class="gmail_quote">On Mon, Oct 10, 2011 at 5:57 AM, <a href="mailto:imagenesis@gmail.com">imagenesis@gmail.com</a> <span dir="ltr"><<a href="mailto:imagenesis@gmail.com">imagenesis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Handling multiple connections is basically a default of netty. There are 2 ways to handle connections (channels), with a global channel handler instance or a channel handler instance per connection. Your own channel handler class should over ride simplechannelhandler and house the logic on messageReceived. This is off the time of my head and the class names might be wrong. All this is covered in the first few pages of the documentation. <br>
<div><div></div><div class="h5">
<br><div class="gmail_quote">On Mon, Oct 10, 2011 at 5:55 AM, <a href="mailto:imagenesis@gmail.com" target="_blank">imagenesis@gmail.com</a> <span dir="ltr"><<a href="mailto:imagenesis@gmail.com" target="_blank">imagenesis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Take a look at the tutorials on the netty site for how client and servers are created. A simple client/server isn't more than 100 lines of code. Your question is just so basic it looks like you haven't look at the first 3 pages of the documentation. <br>
<div><div></div><div>
<br><div class="gmail_quote">On Mon, Oct 10, 2011 at 1:58 AM, Norman Maurer <span dir="ltr"><<a href="mailto:norman.maurer@googlemail.com" target="_blank">norman.maurer@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi there,<br>
so messageReceived is never fired ? Very strange...<br>
<br>
What os you are using and what version of netty?<br>
<br>
Bye,<br>
Norman<br>
<br>
<br>
2011/10/10 metalstorm <<a href="mailto:metalheadstorm@gmail.com" target="_blank">metalheadstorm@gmail.com</a>>:<br>
<div><div></div><div>> I've spent the last few days looking at java networking libraries/ frameworks<br>
> for a project i'm starting. I'm porting an already existing application I<br>
> made in c# over to java.<br>
><br>
> This core of this application is networked(LAN) file transfers, how do I go<br>
> about this using netty?<br>
><br>
> My aim is to be able to send files (can be quite big) over TCP from a server<br>
> to a client (P2P) over LAN (for now)<br>
><br>
> I've looked at the HttpStaticFileServer example and I do not know how to get<br>
> the server to respond to any requests, 'messageReceived' is never fired even<br>
> though i have connected with a (very basic) client.<br>
><br>
> I've searched Google and this (I must say terrible) forum and I can't find<br>
> any simple examples using netty where it will send a file from a given path<br>
> to a client.<br>
><br>
> My C# prototype just uses TCP sockets, I don't need any of the HTTP stuff on<br>
> top.<br>
><br>
> What about multiple connections between server and client (multiple file<br>
> transfers) also how do the server organise multiple clients/connections. Is<br>
> all the threading done for me ? threads per connection per file ?<br>
><br>
> Basically to sum up; I need a client + server example of TCP/LAN file<br>
> transfer using netty, that could be used for mutiple connections / transfer.<br>
><br>
> Thank you :)<br>
><br>
> --<br>
> View this message in context: <a href="http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Network-file-transfer-tp6875434p6875434.html" target="_blank">http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Network-file-transfer-tp6875434p6875434.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" target="_blank">netty-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
><br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org" target="_blank">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>