All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.download.DownloadListener

java.lang.Object
   |
   +----semper.download.DownloadListener

public class DownloadListener
extends Object
implements Runnable
The DownloadListener create and forward the client's connection requests

Version:
$Revision: 1.4 $ $Date: 1998/05/28 15:09:49 $
Author:
Petros Pantis, Kostas Tzelepis

Constructor Index

 o DownloadListener(DownloadServer)
DownloadListener object constructor

Method Index

 o doListen(boolean)
Suspends/resumes the listener thread
 o run()
Accepts new connection requests and forwards the new created sockets to the download module
 o start()
Starts the listener thread
 o Stop()
Stopps the listener thread.

Constructors

 o DownloadListener
 public DownloadListener(DownloadServer dmodule) throws Exception
DownloadListener object constructor

Parameters:
dmodule - a download object reference, in order to forward the new connection requests
Throws: Exception
indicates some problem regarding the creation of the server socket

Methods

 o start
 public void start()
Starts the listener thread

 o Stop
 public void Stop()
Stopps the listener thread. Close the ServerSocket object

 o doListen
 public void doListen(boolean listen)
Suspends/resumes the listener thread

Parameters:
listen - true if resume, false if the listener thread should be interrupted
 o run
 public void run()
Accepts new connection requests and forwards the new created sockets to the download module


All Packages  Class Hierarchy  This Package  Previous  Next  Index