Exemplo n.º 1
0
 /**
  * prints out the current osc properties settings.
  *
  * @return String
  * @related OscProperties
  */
 public String toString() {
   String s = "\nnetwork protocol: " + (_myProtocols[_myNetworkProtocol]) + "\n";
   s +=
       "host: "
           + ((_myRemoteAddress.address() != null)
               ? _myRemoteAddress.address()
               : "host address not set.")
           + "\n";
   s += "sendToPort: " + _myRemoteAddress.port() + "\n";
   s += "receiveAtPort: " + listeningPort() + "\n";
   s += "datagramSize: " + _myDatagramSize + "\n";
   s += "event Method: " + _myDefaultEventMethodName + "\n";
   s += "(S)end(R)eceive(S)ame(P)ort: " + this._mySRSP + "\n\n";
   return s;
 }
Exemplo n.º 2
0
 /**
  * set the remote host address. set ip address and port of the host message should be sent to.
  *
  * @param theNetAddress NetAddress
  * @related OscProperties
  */
 public void setRemoteAddress(NetAddress theNetAddress) {
   _myRemoteAddress = theNetAddress;
   _mySendStatus = _myRemoteAddress.isvalid();
 }
Exemplo n.º 3
0
 /**
  * set the remote host address. set ip address and port of the host message should be sent to.
  *
  * @param theHostAddress String
  * @param thePort int
  * @related OscProperties
  */
 public void setRemoteAddress(final String theHostAddress, final int thePort) {
   _myRemoteAddress = new NetAddress(theHostAddress, thePort);
   _mySendStatus = _myRemoteAddress.isvalid();
 }