private void sendAnnouncement ( InetAddress broadcastAddress ) { try { DatagramPacket announcement = new DatagramPacket ( announcementBytes , announcementBytes . length , broadcastAddress , DeviceFinder . ANNOUNCEMENT_PORT ) ; socket . get ( ) . send ( announcement ) ; Thread . sleep ( getAnnounceInterval ( ) ) ; } catch ( Throwable t ) { logger . warn ( "Unable to send announcement packet, shutting down" , t ) ; stop ( ) ; } }
Send an announcement packet so the other devices see us as being part of the DJ Link network and send us updates .