Network file transfer

imagenesis at gmail.com imagenesis at gmail.com
Mon Oct 10 16:48:54 EDT 2011


Your client sent*

On Mon, Oct 10, 2011 at 4:32 PM, imagenesis at gmail.com
<imagenesis at gmail.com>wrote:

> If you dont want to conform to http or some other standard, you're free to
> send whatever you like. For example, you're free to send something like:
>
> file:c:/myfiles/myfilepath.txt\n
>
> Add a string delimiter and string parser to the pipeline and then in the
> messageReceived use regex to parse the string your server sent. Or you can
> use the http classes to parse the request and send a params request like:
> http://localhost:8080/?file=c:/myfiles/myfilepath.txt or a path to the
> file http://localhost:8080
>
> The logic to stream the file is similar to whatever you did in C#.  I think
> that you are not receiving messageRecieved because of some oversight.
>
> I feel really bad about my previous comment and it has no place on these
> forums for a great product like netty and user adoption.
>
>
> On Mon, Oct 10, 2011 at 1:41 PM, metalstorm <metalheadstorm at gmail.com>wrote:
>
>> "Hi there,
>> so messageReceived is never fired ? Very strange...
>>
>> What os you are using and what version of netty? "
>>
>> Windows 7 64bit, the latest (as of yesterday).
>>
>> "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. "
>>
>> yes I have tried the simple client server examples (echo, discard, etc)
>> but
>> there is no tutorial from what i've seen of sending a file using TCP over
>> LAN from serve to client, including all the input and output stream logic.
>>
>> I will have a look at the HTTP scoop and then try the staticfile one
>> again.
>>
>> Just to make sure, what am I supposed to be sending to the file server as
>> a
>> request.
>>
>>
>>
>> --
>> View this message in context:
>> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Network-file-transfer-tp6875434p6877793.html
>> Sent from the Netty User Group mailing list archive at Nabble.com.
>> _______________________________________________
>> netty-users mailing list
>> netty-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/netty-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20111010/dfabdcd2/attachment.html 


More information about the netty-users mailing list