netbula.ORPC

Class UDPServer

Implemented Interfaces:
Runnable

public class UDPServer
extends Server

Class that runs a UDP server. Usage example:
         Svc svc = new msgsvc(); // use the msg server as example
         UDPServer udpserv = new UDPServer(0, svc);

         if(udpserv.unregister() == false ) {
            System.out.println("Fail to unregister udp server");
         }
         if(udpserv.register() == false ) {
            System.out.println("Fail to register udp server");
         }else {
            System.out.println("UDP server on port:"+udpserv.getPort());
         }
         System.out.println("udp server running");
         Thread t2 = new Thread(udpserv);
         t2.start();

Constructor Summary

UDPServer(int portn, Svc mysvc)

Method Summary

void
run()

Methods inherited from class netbula.ORPC.Server

assignFixedThreadPool, getExecutorSvc, getPort, getProg, getSvc, getVers, isTCP, register, setExecutorSvc, setSvc, unregister

Constructor Details

UDPServer

public UDPServer(int portn,
                 Svc mysvc)
            throws rpc_err

Method Details

run

public void run()