public void run()
    {
        try{
            if(PROTOCOL.toUpperCase() == "TCP")
            {
                this.handleTCP();
            }
            else if(PROTOCOL.toUpperCase() == "UDP")
            { 
                this.handleUDP();
            }
            else
            {
                //System.out.println("ERROR?");
            }
        }
        catch(IOException e)
        {
            System.err.println(e);
        }
        catch(IllegalBlockingModeException e)
        {
            //error?
        }
    }