import netbula.ORPC.*; import java.net.*; public class ClientTest { public ClientTest () { } static public void main(String args[]) { try { msgserv_cln cl = new msgserv_cln("localhost", "udp"); cl.setAuth(new AuthUnix("eagle", 501, 100, new int[2])); String msg = "hello world\n"; System.out.println("sending.. "); for(int i=0; i<5; i++){ String reply = cl.sendmsg(msg); System.out.println("got " + reply +"\n"); } }catch (rpc_err e) { System.out.println("rpc: " + e.toString()); } } }