How to write an application for downloading the file using MINA?

2008-10-02 Thread Erix Yao
How to write an appliation using MINA for the server to control the file downloading ? Can anybody give me any hints? I'm new for MINA.

Re: How to write an application for downloading the file using MINA?

2008-10-02 Thread Erix Yao
you mean I embed the ftp server into my applications ? I will try. But Still I wonder how to write it using MINA myself. Can you give me some hints? I find out that the documents for MINA is not too enough. 2008/10/2 Emmanuel Lecharny [EMAIL PROTECTED] Erix Yao wrote: How to write an

Re: How to write an application for downloading the file using MINA?

2008-10-02 Thread Emmanuel Lecharny
Erix Yao wrote: you mean I embed the ftp server into my applications ? I will try. But Still I wonder how to write it using MINA myself. Can you give me some hints? Nothing more than the current doco, and the samples we have in the code. Reading the code and experiment is the best way to

RE: How to write an application for downloading the file using MINA?

2008-10-02 Thread Bach Christian
+1 for the Mina in Action book :) -Original Message- From: Emmanuel Lecharny [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 2. Oktober 2008 10:28 To: users@mina.apache.org Subject: Re: How to write an application for downloading the file using MINA? Erix Yao wrote: you mean I embed the

Re: How to write an application for downloading the file using MINA?

2008-10-02 Thread Erix Yao
MINA in action? Where can I get the book? I can't even find it from google. Help! 2008/10/2 Bach Christian [EMAIL PROTECTED] +1 for the Mina in Action book :) -Original Message- From: Emmanuel Lecharny [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 2. Oktober 2008 10:28 To:

CFP open for ApacheCon Europe 2009

2008-10-02 Thread Emmanuel Lécharny
The Call for Papers for ApacheCon Europe 2009, to be held in Amsterdam, from 23rd to 27th March, is now open! Submit your proposals at http://eu.apachecon.com/c/aceu2009/cfp/ before 24th October. Remember that early bird prices for ApacheCon US 2008, to be held in New Orleans, from 3rd to 7th

Client operation of mina statemachine difficulty

2008-10-02 Thread xan1376-mina
Hi, I'm trying to use the mina statemachine in a client and I'm having trouble changing states programatically. After my client connects to a server there is an initial message exchange, and then my state machine goes into a ready state. Now if my client wants to send a request detailed info

Re: How to write an application for downloading the file using MINA?

2008-10-02 Thread jlesniak
Emmanuel Lecharny wrote: Erix Yao wrote: How to write an appliation using MINA for the server to control the file downloading ? Can anybody give me any hints? I'm new for MINA. Why don't you have a look at the ftpServer project ? http://mina.apache.org/ftpserver/ Does this project

Re: How to write an application for downloading the file using MINA?

2008-10-02 Thread Erix Yao
Seems like this is a server side component which can be embeded into web aplications. This is as far as I know. By the way ,where can I find more examples for embeded using ? The example code is too simple. 2008/10/2 Niklas Gustavsson [EMAIL PROTECTED] On Thu, Oct 2, 2008 at 3:17 PM, jlesniak

Re: How to write an application for downloading the file using MINA?

2008-10-02 Thread Erix Yao
FtpServer server = new FtpServer(); // set the port of the default listener server.getListener(default).setPort(2221); server.start(); This is all the example code for embeded using. I think it is the embeding functionality that I pick up this component. So I think more examples for embeded

Re: How to write an application for downloading the file using MINA?

2008-10-02 Thread Niklas Gustavsson
On Thu, Oct 2, 2008 at 4:16 PM, Erix Yao [EMAIL PROTECTED] wrote: This is all the example code for embeded using. I think it is the embeding functionality that I pick up this component. So I think more examples for embeded using will catch more attention, such as using it into Tomcat, building

Re: XOR Filter

2008-10-02 Thread W.B. Garvelink
The ProtocolCodecFilter uses an empty buffer internally as a sentinel value to demarcate the end of a unit of input. If you don't return that empty buffer, it keeps allocating additional space, which is causing those huge buffers you're crashing on. Your code shows some confusion about the

Re: XOR Filter

2008-10-02 Thread Emmanuel Lecharny
W.B. Garvelink wrote: The ProtocolCodecFilter uses an empty buffer internally as a sentinel value to demarcate the end of a unit of input. More precisely, this empty buffer is a hack : it is used to increment the number of messages sent... As a side effect, it helps to know that the message

Re: How to write an application for downloading the file using MINA?

2008-10-02 Thread Niklas Gustavsson
On Thu, Oct 2, 2008 at 11:11 AM, Erix Yao [EMAIL PROTECTED] wrote: I want to write an application to control the speed or users for file downloading . At first I post this message to MINA mailing list. And someone told me that I can try Ftp server based on MINA. So I want to know , whether I

Re: How to write an application for downloading the file using MINA?

2008-10-02 Thread Niklas Gustavsson
On Thu, Oct 2, 2008 at 11:46 AM, Erix Yao [EMAIL PROTECTED] wrote: But I don't know how to implement it. Can you give me some hints? Yes ,I mean in web container like tomcat. There was some discussion lately on how to embed FtpServer in a web application. In that case, the guy who did it