Commit cd6d93c6 authored by Philip Carns's avatar Philip Carns

register client routines

parent 2b66eef8
...@@ -78,6 +78,8 @@ int main(int argc, char **argv) ...@@ -78,6 +78,8 @@ int main(int argc, char **argv)
/* register core RPC */ /* register core RPC */
my_rpc_shutdown_id = MERCURY_REGISTER(hg_class, "my_shutdown_rpc", void, void, my_rpc_shutdown_id = MERCURY_REGISTER(hg_class, "my_shutdown_rpc", void, void,
NULL); NULL);
/* register service APIs */
svc1_register_client(mid);
/* find addr for server */ /* find addr for server */
ret = margo_addr_lookup(mid, argv[1], &svr_addr); ret = margo_addr_lookup(mid, argv[1], &svr_addr);
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
#include <margo.h> #include <margo.h>
int svc1_register_client(margo_instance_id mid);
void svc1_do_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mplex_id); void svc1_do_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mplex_id);
#endif /* __SVC1_CLIENT */ #endif /* __SVC1_CLIENT */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment