Learn to program. <br><br><div class="gmail_quote">On Sun, Oct 9, 2011 at 8:27 PM, metalstorm <span dir="ltr">&lt;<a href="mailto:metalheadstorm@gmail.com">metalheadstorm@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I&#39;ve spent the last few days looking at java networking libraries/ frameworks<br>
for a project i&#39;m starting. I&#39;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&#39;ve looked at the HttpStaticFileServer example and I do not know how to get<br>
the server to respond to any requests, &#39;messageReceived&#39; is never fired even<br>
though i have connected with a (very basic) client.<br>
<br>
I&#39;ve searched Google and this (I must say terrible) forum and I can&#39;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&#39;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>
<font color="#888888"><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">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>
</font></blockquote></div><br>