question: final synchronized void releaseSocket ( ) { running = false ; sender . interrupt ( ) ; outboundMessages . clear ( ) ; if ( socket != null ) { socket . close ( ) ; socket = null ; } maximumTransmissionUnit = 0 ; }
target:  Stops the sender and receiver threads and closes the socket used for sending and receiving datagrams.