You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Mahboob Alam Khalid <Ma...@betronic.nl> on 2008/12/23 14:42:10 UTC

shutdown server when there is no client connection ...

Hi,

 

I can do some thing when user login or logout in Ftplet class. But my
problem that Java program says to shutdown server, then at that I want
to check whether is there any user connected, if not then shutdown the
server.

Is there any method to check connected users in FTPserver?

 

Mahboob A. Khalid 

Software Engineer

Betronic Nederland BV
Pedro de Medinalaan 11, 1086 XK
PO Box 37505, 1030 AM
Amsterdam, The Netherlands

www.betronic.nl <http://www.betronic.nl/> 
Registration no. 34227208

M +31 (0)6 243 59 726
T +31 (0)20 59 22 300
F  +31 (0)20 66 51 061

 


Re: shutdown server when there is no client connection ...

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Tue, Dec 23, 2008 at 2:42 PM, Mahboob Alam Khalid
<Ma...@betronic.nl> wrote:
> I can do some thing when user login or logout in Ftplet class. But my
> problem that Java program says to shutdown server, then at that I want
> to check whether is there any user connected, if not then shutdown the
> server.
>
> Is there any method to check connected users in FTPserver?

You can get the active sessions from each Listener, if you're running
FtpServer embedded in your application. If you're running it
standalone your out of luck with the current code.

/niklas