code: public void send(String message) throws IOException {
          buf.setString(message);
          DatagramPacket packet = new DatagramPacket(buf.getByteArray(), buf.length(), host, port);
          socket.send(packet);
      }
docs: Sends a message to SServer.
  
  @param message A valid SServer message.
  @throws java.io.IOException if any.