Examples of OscClientException


Examples of com.neophob.sematrix.osc.client.OscClientException

      this.useTcp = useTcp;
      this.targetPort = 0;
      this.targetIp = "";
      LOG.log(Level.INFO, "OSC Client Factory, initialized, buffersize: "+client.getBufferSize());
    } catch (IOException e) {
      throw new OscClientException("Failed to initialize OSC Client", e);
    }
  }
View Full Code Here

Examples of com.neophob.sematrix.osc.client.OscClientException

            new Object[]{targetIp, targetPort});

        this.targetPort = targetPort;
        this.targetIp = targetIp;
      } catch (IOException e) {
        throw new OscClientException("Failed to start OSC client", e);
      }
    }

    //TODO type check
    OSCPacket oscPacket = null;
    if (msg.getArgs()==null) {
      oscPacket = new OSCMessage(msg.getOscPattern());
    } else {
      oscPacket = new OSCMessage(msg.getOscPattern(), (Object[])msg.getArgs())
    }
    
    try {
      //LOG.log(Level.INFO, "Send OSC Package "+oscPacket+" to "+targetPort);
      client.send(oscPacket);
    } catch (IOException e) {
      throw new OscClientException("Failed to send OSC Message", e);
    }

  }
View Full Code Here

Examples of com.neophob.sematrix.osc.client.OscClientException

        LOG.log(Level.INFO, "OSC Client, disconnect");
        client.stop();
        targetPort = 0;
        targetIp = "";
      } catch (Exception e) {
        throw new OscClientException("Failed to stop OSC client", e);
      }
    }
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.