- scanner - Variable in class clientP2P.ClientInterfaceCLI
-
- scanner - Variable in class clientP2P.ClientP2P
-
- searchByExtention(String[], String) - Method in class tools.SearchFile
-
search correspondance of a String in a the end of String in an array.
- searchByName(String[], String) - Method in class tools.SearchFile
-
search correspondance of a String in a String array.
- SearchFile - Class in tools
-
Helper to search for files.
- SearchFile() - Constructor for class tools.SearchFile
-
- send(Socket) - Method in class protocolP2P.ProtocolP2PPacketTCP
-
Send a Packet.
- send(DatagramSocket) - Method in class protocolP2P.ProtocolP2PPacketUDP
-
Send a Packet.
- send(DatagramSocket, SocketAddress) - Method in class protocolP2P.ProtocolP2PPacketUDP
-
Send a Packet.
- sendEmptyDirectory(T) - Method in class tools.ServeErrors
-
Send an empty directory message.
- sendEmptyFile(T) - Method in class tools.ServeErrors
-
Send an empty file message.
- sendHashResponse(T) - Method in class serverP2P.ServerManagement
-
Send hash response to hash request
- sendInternalError(T) - Method in class tools.ServeErrors
-
Send an internal error message.
- sendListResponse(T) - Method in class serverP2P.ServerManagement
-
Send response to list request
- sendLoadResponse(T) - Method in class serverP2P.ServerManagement
-
Send response to load request
- sendNotATracker(T) - Method in class tools.ServeErrors
-
Send a NotATracker error message.
- sendNotFound(T) - Method in class tools.ServeErrors
-
Send a not found message.
- sendRatioUpdate() - Method in class clientP2P.ClientDownload
-
Send Ratio update to the tracker
- sendRequest(Object) - Method in class protocolP2P.ProtocolP2PPacket
-
Send a request
- sendRequest(Object) - Method in class protocolP2P.ProtocolP2PPacketTCP
-
Send a Request throught socket.
- sendRequest(Object) - Method in class protocolP2P.ProtocolP2PPacketUDP
-
Send a Request throught socket.
- sendResponse(U) - Method in class protocolP2P.ProtocolP2PPacket
-
Send a response
- sendResponse(U) - Method in class protocolP2P.ProtocolP2PPacketTCP
-
Send a Response to a Request (typically used from server).
- sendResponse(U) - Method in class protocolP2P.ProtocolP2PPacketUDP
-
Send a Response to a Request (typically used from server).
- sendSizeResponse(T) - Method in class serverP2P.ServerManagement
-
Send response to size request
- sendUnknownHost(T) - Method in class tools.ServeErrors
-
Send an unknown host message.
- sendUnregisterRequest() - Method in class serverP2P.ServerManagement
-
Send unregister request to tracker
- serialVersionUID - Static variable in exception exception.LocalException
-
- serialVersionUID - Static variable in exception exception.RemoteException
-
- serialVersionUID - Static variable in class gui.ArgumentsGen
-
- serialVersionUID - Static variable in class gui.DownloadFileGUI
-
- serialVersionUID - Static variable in class gui.DownloadSelectionGen
-
- serialVersionUID - Static variable in class gui.ErrorFrame
-
- serialVersionUID - Static variable in class gui.MainWindow
-
- serialVersionUID - Static variable in exception localException.InternalError
-
- serialVersionUID - Static variable in exception localException.ProtocolError
-
- serialVersionUID - Static variable in exception localException.SizeError
-
- serialVersionUID - Static variable in exception localException.SocketClosed
-
- serialVersionUID - Static variable in exception localException.TransmissionError
-
- serialVersionUID - Static variable in exception localException.VersionError
-
- serialVersionUID - Static variable in exception remoteException.EmptyDirectory
-
- serialVersionUID - Static variable in exception remoteException.EmptyFile
-
- serialVersionUID - Static variable in exception remoteException.InternalRemoteError
-
- serialVersionUID - Static variable in exception remoteException.NotATracker
-
- serialVersionUID - Static variable in exception remoteException.NotFound
-
- serialVersionUID - Static variable in exception remoteException.ProtocolRemoteError
-
- serialVersionUID - Static variable in exception remoteException.UnknownHost
-
- serialVersionUID - Static variable in exception remoteException.VersionRemoteError
-
- ServeErrors - Class in tools
-
- ServeErrors() - Constructor for class tools.ServeErrors
-
- server - Variable in class clientP2P.ClientDownloadPart
-
- server - Variable in class clientP2P.ClientP2P
-
- server - Variable in class gui.ClientP2PGUI
-
- server - Variable in class protocolP2P.UpdateRatio
-
- server - Variable in class serverP2P.FileWatcher
-
- server - Variable in class serverP2P.ServerManagement
-
- server - Variable in class serverP2P.ServerP2P
-
- SERVER_PORT_START_POSITION - Static variable in class protocolP2P.UpdateRatio
-
- ServerManagement - Class in serverP2P
-
Implementation of P2P-JAVA-PROJECT VERSION 1.0 protocol.
- ServerManagement(String, HostItem, HostItem, Logger) - Constructor for class serverP2P.ServerManagement
-
Constructor
- ServerManagementTCP - Class in serverP2P
-
Implementation of P2P-JAVA-PROJECT VERSION 1.0 protocol for TCP.
- ServerManagementTCP(String, HostItem, HostItem, Logger) - Constructor for class serverP2P.ServerManagementTCP
-
Constructor for TCP implementation, with baseDirectory and TCPPort parameters.
- ServerManagementTCP.ClientHandler - Class in serverP2P
-
Private runnable class allowing to serve one client.
- ServerManagementUDP - Class in serverP2P
-
Implementation of P2P-JAVA-PROJECT VERSION 1.0 protocol for UDP.
- ServerManagementUDP(String, HostItem, HostItem, Logger) - Constructor for class serverP2P.ServerManagementUDP
-
Constructor for UDP implementation, with baseDirectory and UDPPort parameters.
- serverP2P - package serverP2P
-
- ServerP2P - Class in serverP2P
-
Server only implementation
First argument of main method is port listened by the server, and is mandatory.
- ServerP2P(String, int, String, int, boolean) - Constructor for class serverP2P.ServerP2P
-
Constructor with portServerstr containing a port number.
- ServerPortRange - Class in tools
-
- ServerPortRange() - Constructor for class tools.ServerPortRange
-
Constructor
- setCheckSum(byte[]) - Method in class protocolP2P.ProtocolP2PPacketUDP
-
Used to set checksum into packet
- setDataHomeDirectory() - Method in class tools.Directories
-
Setter for dataHomeDirectory.
- setFilename(byte[]) - Method in class protocolP2P.FilePart
-
Write from Packet into filename.
- setOffset(byte[]) - Method in class protocolP2P.FilePart
-
Write from Packet into offset.
- setPartialContent(byte[]) - Method in class protocolP2P.FilePart
-
Write from Packet into partialContent.
- setPayloadSize(int, byte[]) - Static method in class protocolP2P.Payload
-
Set payload’s size in a Packet.
- setSize() - Method in class clientP2P.ClientDownload
-
Set size of file to download.
- setStop() - Method in class clientP2P.ClientDownload
-
Asks thread to stop
- setStop() - Method in class clientP2P.ClientDownloadPart
-
Asks to stop thread.
- setStop() - Method in class serverP2P.FileWatcher
-
Ask the thread to stop
- setStop() - Method in class serverP2P.RatioWatcher
-
Ask the thread to stop
- setStop() - Method in class serverP2P.ServerManagement
-
Stop the thread
- setStop() - Method in class tracker.TrackerManagement
-
Stop the thread
- setThread(Thread) - Method in class serverP2P.FileWatcher
-
Set thread
- setThread(Thread) - Method in class serverP2P.RatioWatcher
-
Set thread
- sha512 - Variable in class serverP2P.FileWatcher
-
- size - Variable in class clientP2P.ClientDownload
-
- SizeError - Exception in localException
-
Used on reception side when size as set in Packet is too big, and we cant store this in a int/long as usual.
- SizeError() - Constructor for exception localException.SizeError
-
- SizeRequest - Class in protocolP2P
-
Representation of payload for load request.
- SizeRequest(String) - Constructor for class protocolP2P.SizeRequest
-
Constructor (typically used by the client) with a filename parameter.
- SizeRequest(byte[]) - Constructor for class protocolP2P.SizeRequest
-
Constructor (typically used by server) with a byte[] parameter containing the Packet received.
- SizeResponse - Class in protocolP2P
-
Representation of payload for size response.
- SizeResponse(String, long) - Constructor for class protocolP2P.SizeResponse
-
Constructor (typically used by server) with informations about file part to send as parameters.
- SizeResponse(byte[]) - Constructor for class protocolP2P.SizeResponse
-
Constructor (typically used by client) with Packet received as parameter.
- smtcp - Variable in class gui.ClientInterfaceGUI
-
- smtcp - Variable in class gui.DownloadFileGUI
-
- smtcp - Variable in class gui.DownloadSelectionGen
-
- smudp - Variable in class gui.ClientInterfaceGUI
-
- smudp - Variable in class gui.DownloadFileGUI
-
- smudp - Variable in class gui.DownloadSelectionGen
-
- socket - Variable in class clientP2P.ClientDownloadPartTCP
-
- socket - Variable in class clientP2P.ClientDownloadPartUDP
-
- socket - Variable in class serverP2P.ServerManagementTCP
-
- socket - Variable in class serverP2P.ServerManagementUDP
-
- socket - Variable in class tracker.TrackerManagementTCP
-
- socket - Variable in class tracker.TrackerManagementUDP
-
- SocketClosed - Exception in localException
-
- SocketClosed() - Constructor for exception localException.SocketClosed
-
- sockList - Variable in class clientP2P.ClientDownload
-
- stop - Variable in class clientP2P.ClientDownload
-
- stop - Variable in class clientP2P.ClientDownloadPart
-
- stop - Variable in class serverP2P.FileWatcher
-
- stop - Variable in class serverP2P.RatioWatcher
-
- stop - Variable in class serverP2P.ServerManagement
-
- stop - Variable in class tracker.TrackerManagement
-
- stopTasks() - Method in class clientP2P.ClientDownload
-
Stop threads
- subdir - Static variable in class serverP2P.ServerP2P
-
- success - Variable in class clientP2P.ClientDownload
-