Code example for DatagramSocket

Methods: closeisClosed

0
      this.func_109837_a("closeSocket: " + var1);
      if(null == var1) {
         return false; 
      } else { 
         boolean var3 = false;
         if(!var1.isClosed()) {
            var1.close();
            var3 = true;
         } 
 
         if(var2) {
            this.field_109846_e.remove(var1);
         } 
 
         return var3;
      } 
   } 
 
   protected boolean func_109838_b(ServerSocket var1) {
      return this.func_109835_a(var1, true);
Contextual code suggestions in your IDE  Get Codota for Java