public void listenSync ( InetAddress address , int port ) throws IOException { if ( auth == null ) throw new NullPointerException ( "The Authenticator is null" ) ; if ( socket != null ) throw new IOException ( "Server already started" ) ; socket = Utils . createServer ( port , 50 , address , ssl , ! explicitSecurity ) ; while ( ! socket . isClosed ( ) ) { update ( ) ; } }
Starts the FTP server synchronously blocking the current thread .