/* * Releases majordomo resources */ public void Dispose() { Wrapper.client_destroy(handle); }
/* * Send a message to worker identified by service argument * * ex. c.Send( "echo", "I like cheese" ); * * Extended send functionality is provided in the Request object. */ public void Send(String service, String message) { Wrapper.client_send_string(handle, service, message); }
/* * Handles response (if any from worker) */ public Response Recv() { return(Wrapper.client_recv(handle)); }
/* * Instantiate client and connect to broker. * * ex. Client c = new Client( "tcp://192.168.1.7:5555", true ); */ public Client(String broker, bool verbose) { handle = Wrapper.client_new(broker, verbose ? 1 : 0); }