A F G M R S U V

A

Actions - interface Actions.
Standard operation define for file thread and server thread working on a socket and server socket
Alive() - Method in interface Actions
This method is use to find the status of the thread
Alive() - Method in class FileServer
Check the liveness of Thread all file thread and return status
Alive() - Method in class FileTransfer
Check the liveness of Thread
actionPerformed(ActionEvent) - Method in class View
stop server activity and exit the program

F

FileServer - class FileServer.
This class starts the server and wait for connection
FileServer() - Constructor for class FileServer
 
FileTransfer - class FileTransfer.
Receive file from socket and save it to a disk
FileTransfer() - Constructor for class FileTransfer
 

G

getIP() - Method in interface Actions
This method is use to find the IP address of connected Socket
getIP() - Method in class FileServer
find and return Local IP address of connected server socket return IP Address
getIP() - Method in class FileTransfer
Find Remote IP address of connected socket
getPort() - Method in interface Actions
This method is use to find the port of connected Socket
getPort() - Method in class FileServer
find and return Local port number of connected server socket return port number
getPort() - Method in class FileTransfer
Find Remote port of connected socket
getStatus() - Method in interface Actions
This method can be use to find the status of Thread
getStatus() - Method in class FileServer
Find and return thread status message
getStatus() - Method in class FileTransfer
Find and return thread status message

M

main(String[]) - Static method in class ServerTest
 

R

run() - Method in class FileServer
Thread run method
run() - Method in class FileTransfer
Thread run method

S

ServerTest - class ServerTest.
The main class intialize server and create GUI
ServerTest() - Constructor for class ServerTest
 
setObserver(View) - Method in interface Actions
Set the Observer for Observable
setObserver(View) - Method in class FileServer
Set the Observer for Observable
setObserver(View) - Method in class FileTransfer
Set the Observer for Observable
startServer(int) - Method in class FileServer
Start file server and thread for accepting connection
startTransfer(Socket) - Method in class FileTransfer
Start file receiving thread
stopServer() - Method in class FileServer
stop server by closing socket and stopping thread
stopTransfer() - Method in class FileTransfer
Stop file transfer thread and close socket

U

update(Observable, Object) - Method in class View
Method to update server status

V

View - class View.
This classs creates GUI
View(FileServer) - Constructor for class View
creates and show GUI

A F G M R S U V