include/DFR.h File Reference
Go to the source code of this file.
|
Functions |
int | main (int argc, char *argv[]) |
Detailed Description
NOTE: if the user does not pass exactly 4 parameters, the DFR will not go on, terminating with error. assumption on the parameters:
- the first is the IP_address used for listening for FSs
- the second is the IP_address used for listening for CLs
- the third is the port on which the DFR will listen for FSs
- the fourth is the port on which the DFR will listen for CLs
USAGE:
DFR [IP_address_for_FSs] [IP_address_for_CSs] \
[port_for_FSs] [port_for_CLs]
we assume that the ports and the ip addresses are expressed correctly, this means that if this is not true the calls trying to bind an address to a socket will fail, resulting in the program terminating with error
this main makes some initialization and creates the two main threads of the DFR program:
- FS_s: the thread which accepts requests from FSs, this server associates to each request a private thread thats executes that request
- CL_s: the thread which accepts requests from CLs, this server associates to each request a private thread thats executes that request
- See also:
- FS_s_body
CL_s_body
Definition in file DFR.h.
Function Documentation
int main |
( |
int |
argc, |
|
|
char * |
argv[] | |
|
) |
| | |