program RESTAURANTCLUB {
version RTCLUB1ST {
unsigned int getRestNum (unsigned int RestClubId) = 1;
RestList getRestList (unsigned int RestClubId) = 2;
RestInfo getRestRecord (unsigned int RestId) = 3;
} = 1;
} = 536xx;
struct RestInfo {
int RestId;
char RestTitle[100];
char RestCateg[100];
char RestAddr[100];
int RestClubIdPath[15];
};
struct RestList {
char RestTitle[100];
int RestId;
struct RestList *NextRest;
};
Also, in your own format, log all requests with a timestamp.
Run your server program continuously between 02/24/05 and 03/07/05. To run it as a daemon process, you can utilize 'nohup'. However, after 03/07/05, you have to cleanup (kill -9 procID) your process. In order to find out the daemon process's proc ID, you can use:
ps -elf | grep yourProgName ps -auxw | grep yourProgName
rpcinfo -p | grep 536
to see which servers are available.