Skip to content

Commit 03aa549

Browse files
authored
Update README.md
1 parent 40cfa2d commit 03aa549

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This project focuses on skeleton implemention of the Bully Algorithm in Leader E
55

66
### Implementation
77
Major implementation contraints or strategies involve-
8-
* Each node is aware of the other's node network information, i.e. IP address and port
8+
* Each node is aware of the network information of other nodes, i.e. IP address and port.
99
* There is one file which needs to be built and the program needs to run on several terminal windows, each representing a node in the network. IP addresses is 127.0.0.1 and port numbers range from 3000-3004.
1010
* For ease of implementation, 5 nodes are allowed by default. More nodes can be added with minimal changes in the code.
1111
* By default, 5th node is the coordinator.
@@ -14,21 +14,21 @@ Major implementation contraints or strategies involve-
1414

1515
### Output interface
1616
Output interface contains 3 major components-
17-
1. Selecting id of the node
18-
1. Give an option to state if the node just recovered from a crash
19-
1. Communicate with the coordinator
17+
1. Selecting id of the node.
18+
1. Give an option to state if the node just recovered from a crash.
19+
1. Communicate with the coordinator.
2020

2121
_Fig: Basic output interface of the program_
2222
![Output interface](/screenshots/output_interface.png)
2323

2424
### RPC methods:
25-
* **Election(invoker_id int, reply \*Reply)**\
25+
* **Election(invoker_id int, reply \*Reply) error**\
2626
Handles election received from the nodes with lower id.by sending them OK message along with the node invoking election. Checks like `no_election_invoked: bool` are present to prevent multiple elections by a single host.
2727

2828
* **NewCoordinator(new_id int, reply \*Reply) error**\
2929
This function is used by the coodinator by calling this function as broadcast in other nodes to update the coordinator id as the last stage of the Bully Algorithm.
3030

31-
* **HandleCommunication(req_id int, reply \*Reply)**\
31+
* **HandleCommunication(req_id int, reply \*Reply) error**\
3232
This function is called by the particpants to communicate to the coordinator and get response from the function. Fail in calling or getting response this function from coordinator triggers the election.
3333

3434
### Screenshots

0 commit comments

Comments
 (0)