Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
L
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.
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).
createDownloadDir(String)
- Method in class
FishClient
Creates a download subdirectory in current directory.
currentBytes
- Variable in class
FishClientDownloadThread
Number of bytes downloaded
currentSpeed
- Variable in class
FishClientDownloadThread
Holds calculated average download speed in kBytes/second
D
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.
fileSize
- Variable in class
FishClient.ResultPost
Filesize in bytes.
FishClient
- class
FishClient
.
FISH for ducks multicast 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.
FishClientQueryHandler
- class
FishClientQueryHandler
.
Handler for the queries recived on the specified multicast address.
FishClientQueryHandler(byte[])
- Constructor for class
FishClientQueryHandler
Stores the request in a string for handling
FishClientQueryThread
- class
FishClientQueryThread
.
Thread for the client to listen for queries on the specified multicast address.
FishClientQueryThread(String, int)
- Constructor for class
FishClientQueryThread
Start the server on chosen port.
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.
G
getJarImage(String, String)
- Static method in class
FishClient
Reads out and returns an image from a Jar-file (max 100kB).
getServerPort()
- Method in class
FishClientServerThread
Tells which port the server is running on.
I
ipAddress
- Variable in class
FishClient.ResultPost
IP-address of client holding file.
isCellEditable(int, int)
- Method in class
FishClient.FishTable
Checks if cell is editable.
L
localAddress
- Static variable in class
FishClient
Holds current IP-address of localhost
localPort
- Static variable in class
FishClient
Holds portnumber of download service
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.
P
port
- Variable in class
FishClient.ResultPost
Port to connect to at client to download files.
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
recurseDir(File, boolean)
- Method in class
FishClient
The actually search for files, and it can recurse through subdirectories.
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
FishClientQueryHandler
Starts the search for files and returns them .
run()
- Method in class
FishClientQueryThread
Start accepting requests from the multicast group.
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.
running
- Static variable in class
FishClientQueryThread
S
search()
- Method in class
FishClient
Send a searchrequest on the multicast address and then save the result and present it in the GUI.
share()
- Method in class
FishClient
Checks if directory is valid and then gets the files and saves them in a local vector.
sharedFiles
- Static variable in class
FishClient
Holds currently shared local files in the format fileName:fileSize
shareDialog()
- Method in class
FishClient
Pops up a dialoag to choose which directory with files to share.
U
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.
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
L
M
P
R
S
U
W
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes