repository_class::repository_class::location Struct Reference

location of a file More...

List of all members.

Public Attributes

int serv_sock
string serv_ip_address
int port
int max_clients
int cur_clients
list< int > active_clients


Detailed Description

location of a file

this structure contains the location of a file in term of a server where it is located, a port to contact the server, the max number of clients that can contact the server asking for that file and the number of clients currently using the file. It also contains a list of active clients on this particular file and this particular location, identified by their socket on the DFR. FSs are individuated through the socket associated with them, which is stored in the serv_sock field.

Definition at line 46 of file repository.h.


Member Data Documentation

list<int> repository_class::repository_class::location::active_clients

Definition at line 52 of file repository.h.

int repository_class::repository_class::location::cur_clients

Definition at line 51 of file repository.h.

Referenced by repository_class::add_file().

int repository_class::repository_class::location::max_clients

Definition at line 50 of file repository.h.

Referenced by repository_class::add_file().

int repository_class::repository_class::location::port

Definition at line 49 of file repository.h.

Referenced by repository_class::add_file().

string repository_class::repository_class::location::serv_ip_address

Definition at line 48 of file repository.h.

Referenced by repository_class::add_file().

int repository_class::repository_class::location::serv_sock

Definition at line 47 of file repository.h.

Referenced by repository_class::add_file().


The documentation for this struct was generated from the following file:

Generated on Sat Jun 13 21:06:30 2009 for DistributedFileRepository by  doxygen 1.5.8