Skip to content

Commit

Permalink
routing protype started.
Browse files Browse the repository at this point in the history
git-svn-id: https://subversion.cs.uiuc.edu/svn/bang/eoh2009@105 69d76c3e-0761-0410-948c-9895a8bb34fc
  • Loading branch information
nbysani2 committed Mar 7, 2009
1 parent da9e24e commit aecf676
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions src/base/bang-routing.c
Expand Up @@ -10,3 +10,70 @@
#include<stdlib.h>
#include<string.h>
#include<uuid/uuid.h>

enum remote_route {
REMOTE,
LOCAL
};

typedef struct {
int peer_id;

} peer_route;

typedef struct {
enum remote_route remote;
peer_route *remote;
} peer_or_module;

static BANG_hashmap *routes = NULL;

void BANG_route_job(uuid_t authority, uuid_t peer, BANG_job *job) {
assert(routes != NULL);
assert(job != NULL);

}

void BANG_route_job_to_uuids(uuid_t authority, uuid_t *peers, BANG_job *job) {
}

void BANG_route_finished_job(uuid_t auth, uuid_t peer, BANG_job *job) {
}

void BANG_route_request_job(uuid_t peer, uuid_t authority) {
}

void BANG_route_assertion_of_authority(uuid_t authority, uuid_t peer) {
}

void BANG_route_send_message(uuid_t uuid, char *message) {
}

int BANG_route_get_peer_id(uuid_t uuid) {
}

int** BANG_not_route_get_peer_id(uuid_t *uuids) {
return NULL:
}

void BANG_route_new_peer(uuid_t peer, uuid_t new_peer) {
}

void BANG_route_remove_peer(uuid_t peer, uuid_t old_peer) {
}

void BANG_register_module_route(BANG_module *module) {
}

void BANG_register_peer_route(uuid_t uuid, int peer, char *module_name, unsigned char* module_version) {
}

void BANG_deregister_route(uuid_t uid) {
}

void BANG_route_init() {
}

void BANG_route_close() {
}
#endif

0 comments on commit aecf676

Please sign in to comment.