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
-
DownloadListener(DownloadServer)
- DownloadListener object constructor
-
doListen(boolean)
- Suspends/resumes the listener thread
-
run()
- Accepts new connection requests and forwards the new created sockets
to the download module
-
start()
- Starts the listener thread
-
Stop()
- Stopps the listener thread.
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
start
public void start()
- Starts the listener thread
Stop
public void Stop()
- Stopps the listener thread. Close the ServerSocket object
doListen
public void doListen(boolean listen)
- Suspends/resumes the listener thread
- Parameters:
- listen - true if resume, false if the listener thread should be interrupted
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