Interface Actions

All Known Implementing Classes:
FileServer, FileTransfer

public interface Actions

Standard operation define for file thread and server thread working on a socket and server socket

Version:
1.0
Author:
Adeel Hashmi

Method Summary
 boolean Alive()
          This method is use to find the status of the thread
 String getIP()
          This method is use to find the IP address of connected Socket
 int getPort()
          This method is use to find the port of connected Socket
 String getStatus()
          This method can be use to find the status of Thread
 void setObserver(View v)
          Set the Observer for Observable
 

Method Detail

Alive

public boolean Alive()
This method is use to find the status of the thread

Returns:
Thread status

getIP

public String getIP()
This method is use to find the IP address of connected Socket

Returns:
port number

getPort

public int getPort()
This method is use to find the port of connected Socket

Returns:
port number

getStatus

public String getStatus()
This method can be use to find the status of Thread

Returns:
message

setObserver

public void setObserver(View v)
Set the Observer for Observable

Parameters:
v - Observer object