예제 #1
0
 /*
  * Releases majordomo resources
  */
 public void  Dispose()
 {
     Wrapper.client_destroy(handle);
 }
예제 #2
0
 /*
  * 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);
 }
예제 #3
0
 /*
  * Handles response (if any from worker)
  */
 public Response Recv()
 {
     return(Wrapper.client_recv(handle));
 }
예제 #4
0
 /*
  * 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);
 }