Package java.net

Examples of java.net.MulticastSocket.disconnect()


          InetAddress upnpAddress = getUPNPAddress();
          multicastSocket.leaveGroup(upnpAddress);
        } catch (IOException e) {
        }

        multicastSocket.disconnect();
        multicastSocket.close();
      }
    }
  }
View Full Code Here


                InetAddress upnpAddress = getUPNPAddress();
                multicastSocket.leaveGroup(upnpAddress);
              } catch (IOException e) {
              }

              multicastSocket.disconnect();
              multicastSocket.close();
            }
          }
        }
      }
View Full Code Here

          InetAddress upnpAddress = getUPNPAddress();
          multicastSocket.leaveGroup(upnpAddress);
        } catch (IOException e) {
        }

        multicastSocket.disconnect();
        multicastSocket.close();
      }
    }
  }
View Full Code Here

        multicast.setTimeToLive(4);
        logger.debug("Send multicast request.");
        multicast.send(discoveryPacket);
      } finally {
        logger.debug("Multicast ends. Close connection.");
        multicast.disconnect();
        multicast.close();
      }

      // Response-Listener
      DatagramSocket wemoReceiveSocket = null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.