Class FishClientServerHandler

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--FishClientServerHandler
All Implemented Interfaces:
java.lang.Runnable

public class FishClientServerHandler
extends java.lang.Thread

Handler for upload to the requesting client and answer on pings from servers.

Version:
1.0
Author:
Björn Bertilsson

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FishClientServerHandler(java.net.Socket fSocket)
          Setup of the connection to the requester.
 
Method Summary
 void run()
          Check what the requester wants and do lookup for file and checks if it's still a valid share it wants.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FishClientServerHandler

public FishClientServerHandler(java.net.Socket fSocket)
Setup of the connection to the requester.

Method Detail

run

public void run()
Check what the requester wants and do lookup for file and checks if it's still a valid share it wants. If ok, start transferring the requested file.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread