Skip to content

Commit

Permalink
Flushed out more of the requests code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikhil Samith Bysani committed Jan 4, 2009
1 parent 0d7f98a commit 0fad9ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/base/bang-com.c
Expand Up @@ -423,6 +423,14 @@ void BANG_catch_request_all(int signal, int sig_id, void *vrequest) {
BANG_request_all(to_request);
}

void BANG_request_peer_id(int peer_id, BANG_request *request) {
int id;
acquire_peers_read_lock();
id = BANG_get_key_with_peer_id(peer_id);
request_peer(peers[id],request);
release_peers_read_lock();
}

int BANG_get_key_with_peer_id(int peer_id) {
int i = 0;
for (i = 0; i < current_peers; ++i) {
Expand Down

0 comments on commit 0fad9ae

Please sign in to comment.