/**
  * set the network protocol over which osc messages are transmitted. options are OscProperties.UDP
  * and OscProperties.MULTICAST the network protocol can only be set before initializing oscP5.
  *
  * @param theProtocol int
  * @related OscProperties
  * @related UDP
  * @related TCP
  * @related MULTICAST
  * @related networkProtocol ( )
  */
 public void setNetworkProtocol(final int theProtocol) {
   if (!isLocked) {
     if (theProtocol > 2) {
       Logger.printWarning(
           "OscProperties.setNetworkProtocol",
           "not in the range of supported Network protocols. the network protocol defaults to UDP");
     } else {
       _myNetworkProtocol = theProtocol;
     }
   } else {
     Logger.printWarning(
         "OscProperties.setNetworkProtocol",
         "network protocol can only be set before initializing oscP5.");
   }
 }
 /**
  * set the size of the datagrampacket byte buffer. the default size is 1536 bytes.
  *
  * @param theSize int
  * @related OscProperties
  */
 public void setDatagramSize(final int theSize) {
   if (!isLocked) {
     _myDatagramSize = theSize;
   } else {
     Logger.printWarning(
         "OscProperties.setDatagramSize",
         "datagram size can only be set before initializing oscP5\ncurrent datagram size is "
             + _myDatagramSize);
   }
 }