Question: For the data structures given in the previous problem, give the XDR routine that encodes/decodes these structures. If you have XDR available to you, run
For the data structures given in the previous problem, give the XDR routine that encodes/decodes these structures. If you have XDR available to you, run this routine and measure how long it takes to encode and decode an example instance of structure employee.
Data from in previous problem ![#define MAXSTR 100 struct date I 1: char month[MAXSTR]: int day: int](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1706/6/1/1/06665b8d17a764c91706611065067.jpg)
where num_raises + 1 corresponds to the number of valid entries in array salary_history. Show the on-the-wire representation of employee0 that is generated by XDR.
#define MAXSTR 100 struct date I 1: char month[MAXSTR]: int day: int year: struct employee ! 1: char name[MAXSTR]: int ssn: struct date *hireday: int salary_history [5]: num_raises: int static struct date date0 ("MAY". 5. 19961: static struct date datel - ("JANUARY". 7. 2002): static struct employee employee0 - ("RICHARD". 4376. &date0. (14000. 35000. 47000. 0. 01. 21: - ("MARY". 4377. &datel, 190000. 150000. 0. 0. 01. 1): static struct employee employeel
Step by Step Solution
3.46 Rating (149 Votes )
There are 3 Steps involved in it
The provided image contains C structures for a date and an employee The employee structure consists of a name social security number SSN hire date whi... View full answer
Get step-by-step solutions from verified subject matter experts
