protected void send(Packet packet){
  if (connection != null) {
    connection.send(packet);
  }
}

protected void send ( Packet packet ) { if ( connection != null ) { connection . send ( packet ) ; } }
send the message to the server
