Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
M
P
R
S
U
W
A
actionPerformed(ActionEvent)
- Method in class
FishClient
Eventhandler for the GUI.
actionPerformed(ActionEvent)
- Method in class
FishClientAboutBox
Invoked when ok button is clicked.
actionPerformed(ActionEvent)
- Method in class
FishClientDownload
Process user click on cancel-button.
addClientShare(String, int, Vector)
- Method in class
FishServerHandler
Adds a share for the client to the global dir.
addFilesSize(long)
- Static method in class
FishServerHandler
Increase statistics on total size of shared files.
addNumFiles(int)
- Static method in class
FishServerHandler
Increase statistics on total number of shared files.
B
buildGUI(String)
- Method in class
FishClientGUI
Component initialization.
C
cancel()
- Method in class
FishClientAboutBox
Closes the dialog.
cancel()
- Method in class
FishClientDownload
Cancels the transfer and then closes the window.
capDldDone
- Static variable in class
FishClient
Set by download to trigger an update if file is downloaded in shared file path.
clearSearch()
- Method in class
FishClient
Clears the search results.
connect()
- Method in class
FishClient
Try to connect to a FishServer and authorize with it.
count
- Variable in class
FishClient.ResultPost
Position in vector (used for security, only files in the vector can be downloaded).
count
- Variable in class
FishServerHandler.FilePost
Index in clients vector
createDownloadDir(String)
- Method in class
FishClient
Creates a download subdirectory in current directory.
cShare
- Variable in class
FishServerHandler.SharePost
Vector containing all files shared from client.
cSharePort
- Variable in class
FishServerHandler.SharePost
Portnumber on which client serves download requests.
currentBytes
- Variable in class
FishClientDownloadThread
Number of bytes downloaded
currentSpeed
- Variable in class
FishClientDownloadThread
Holds calculated average download speed in kBytes/second
D
decConnectedClients()
- Static method in class
FishServerHandler
Decrease statistics on number of currently connected clients.
disconnect()
- Method in class
FishClient
Nicely unshare files at server and then disconnects.
DONE
- Variable in class
FishClientDownloadThread
Used to indicate if download is completed
downloadDir
- Static variable in class
FishClient
Contains a link to the download directory.
E
ERROR
- Variable in class
FishClientDownloadThread
Used to indicate if an error in download process has ocurred
F
fileList
- Static variable in class
FishClient
Contains the current set of files shared by local user.
fileName
- Variable in class
FishClient.ResultPost
Filename.
fileName
- Variable in class
FishServerHandler.FilePost
Filename.
fileSize
- Variable in class
FishClient.ResultPost
Filesize in bytes.
FishClient
- class
FishClient
.
FISH for ducks client.
FishClient.FishTable
- class
FishClient.FishTable
.
Extended JTable to implement read-only cells.
FishClient.FishTable(Object[][], String[])
- Constructor for class
FishClient.FishTable
Creates an table of an 2D array of objects.
FishClient.FishTable(String[][], String[])
- Constructor for class
FishClient.FishTable
Creates an table of an 2D array of Strings.
FishClient.ResultPost
- class
FishClient.ResultPost
.
Container to keep searchresults.
FishClient.ResultPost()
- Constructor for class
FishClient.ResultPost
FishClient()
- Constructor for class
FishClient
Build the client GUI, add actionlisteners and start clients serverpart.
FishClientAboutBox
- class
FishClientAboutBox
.
Small aboutbox for the GUI.
FishClientAboutBox(Frame)
- Constructor for class
FishClientAboutBox
Create an aboutbox showing information about the FishClient.
FishClientDownload
- class
FishClientDownload
.
Used to initialize the download of the found file that was selected for download from the corresponding client.
FishClientDownload(String, int, String, int, int)
- Constructor for class
FishClientDownload
Initialize a new download from a remote user with a window presenting the progress.
FishClientDownloadThread
- class
FishClientDownloadThread
.
Thread that setup communication and do the actual downloading of the requested file propagated from FishClientDownload class.
FishClientDownloadThread(String, int, String, int, int)
- Constructor for class
FishClientDownloadThread
Open connection to the serverpart of the client holding the wanted file.
FishClientGUI
- class
FishClientGUI
.
Building of the main GUI for the client.
FishClientGUI(String)
- Constructor for class
FishClientGUI
Construct the frame and center it on the screen.
FishClientServerHandler
- class
FishClientServerHandler
.
Handler for upload to the requesting client and answer on pings from servers.
FishClientServerHandler(Socket)
- Constructor for class
FishClientServerHandler
Setup of the connection to the requester.
FishClientServerThread
- class
FishClientServerThread
.
Thread for the client to accept other clients requests for download of files, and server pings.
FishClientServerThread(int)
- Constructor for class
FishClientServerThread
Start the server on chosen port.
FishServer
- class
FishServer
.
Server handles multiple client connections.
FishServer(int)
- Constructor for class
FishServer
Tries to open a ServerSocket on the requested port.
FishServerHandler
- class
FishServerHandler
.
Thread to handle clients interaction with the server.
FishServerHandler.FilePost
- class
FishServerHandler.FilePost
.
Post which contains information on the files
FishServerHandler.FilePost(String, String, int)
- Constructor for class
FishServerHandler.FilePost
Constructs a post containing information about a shared file.
FishServerHandler.SharePost
- class
FishServerHandler.SharePost
.
Post to put in the global dir with info. on the client and its files.
FishServerHandler.SharePost()
- Constructor for class
FishServerHandler.SharePost
FishServerHandler(Socket)
- Constructor for class
FishServerHandler
Initializing the in- and outputstream between the client and the server.
G
getClientsDuringUptime()
- Static method in class
FishServerHandler
Number of clients that have connected to the server since it started.
getConnectedClients()
- Static method in class
FishServerHandler
Statistics on number of currently connected clients.
getFilesSize()
- Static method in class
FishServerHandler
Statistics on total size of shared files.
getJarImage(String, String)
- Static method in class
FishClient
Reads out and returns an image from a Jar-file (max 100kB).
getNumFiles()
- Static method in class
FishServerHandler
Statistics on total number of shared files.
getServerPort()
- Method in class
FishClientServerThread
Tells which port the server is running on.
I
incConnectedClients()
- Static method in class
FishServerHandler
Increase statistics on number of currently connected clients.
ipAddress
- Variable in class
FishClient.ResultPost
IP-address of client holding file.
ipAddress
- Variable in class
FishServerHandler.SharePost
IP-address where client can be reached.
isCellEditable(int, int)
- Method in class
FishClient.FishTable
Checks if cell is editable.
M
main(String[])
- Static method in class
FishClient
Main function to start the client.
main(String[])
- Static method in class
FishClientDownload
Used for testing only.
main(String[])
- Static method in class
FishClientGUI
Used only for testing the look of the GUI.
main(String[])
- Static method in class
FishServer
Static method that tries to start the Server on the default port if no other port is specified on the commandline.
P
ping()
- Method in class
FishServerHandler
Respond with statistics when the server is pinged.
pingServer()
- Method in class
FishClient
Ping the server and gets serverstatistics in return to display in logwindow.
pong()
- Method in class
FishServerHandler
Check if client is still alive, if not disconnect.
port
- Variable in class
FishClient.ResultPost
Port to connect to at client to download files.
printLog(String)
- Method in class
FishServerHandler
Print the unique number for the client and the message in the log window.
processWindowEvent(WindowEvent)
- Method in class
FishClientAboutBox
Overridden so we can exit properly when the window is closed.
processWindowEvent(WindowEvent)
- Method in class
FishClientDownload
Overridden so we can exit nicely when window is closed.
processWindowEvent(WindowEvent)
- Method in class
FishClientGUI
Overridden so we can exit when window is closed.
R
readLine()
- Method in class
FishClient
Reads a line from the server.
readLineLow()
- Method in class
FishClient
Reads a line from the server and convert it to lowercase.
readLineLow()
- Method in class
FishServerHandler
Reads a line from the client and convert it to lowercase.
readLineLowExc()
- Method in class
FishClient
Reads a line from the server and convert it to lowercase.
readLineLowExc()
- Method in class
FishServerHandler
Reads a line from the client and convert it to lowercase.
recurseDir(File, boolean)
- Method in class
FishClient
The actually search for files, and it can recurse through subdirectories.
removeClientShare(String)
- Method in class
FishServerHandler
Removes a share for the client in the global dir, by searching the global list with the unique combination of clients IP-address and portnumber.
removeFilesSize(long)
- Static method in class
FishServerHandler
Decrease statistics on total size of shared files.
removeNumFiles(int)
- Static method in class
FishServerHandler
Decrease statistics on total number of shared files.
run()
- Method in class
FishClientDownload
Starts the download and shows the progress.
run()
- Method in class
FishClientDownloadThread
Authorize with the other client and check if file still is shared, then starts downloading it.
run()
- Method in class
FishClientServerHandler
Check what the requester wants and do lookup for file and checks if it's still a valid share it wants.
run()
- Method in class
FishClientServerThread
Start the server and dispatch incomming requests to the handler.
run()
- Method in class
FishServer
Accepts incomming clients and gives them a ServerHandler and continues to accept new clients.
run()
- Method in class
FishServerHandler
Start the thread, and accept incomming commands.
S
search()
- Method in class
FishClient
Send a searchrequest to the server and then save the result and present it in the GUI.
search()
- Method in class
FishServerHandler
Search for files in the global list with all clients files.
sendShare()
- Method in class
FishClient
Sends the info of the local shared files to the server.
share()
- Method in class
FishClient
Checks if directory is valid and then gets the files and saves them in a local vector.
shareDialog()
- Method in class
FishClient
Pops up a dialoag to choose which directory with files to share.
shareFiles()
- Method in class
FishServerHandler
Shared files are put in a vector and associated with client, then to be put in the global searchable list.
size
- Variable in class
FishServerHandler.FilePost
Filesize.
U
unknownCommand(String)
- Method in class
FishServerHandler
Function to handle invalid or unknown requests.
unshare()
- Method in class
FishClient
Tells the server to remove all files shared by this client and then clear the local list of shared files.
unshareFiles()
- Method in class
FishServerHandler
Unshare clients files when they are not available any longer.
updateOnDownload
- Static variable in class
FishClient
Indicates if download should trigger an update to the share.
W
writeLog(String)
- Static method in class
FishClient
Write to the top of the log in the GUI.
A
B
C
D
E
F
G
I
M
P
R
S
U
W
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes