src/com/shrewdify/diaroser/main/ServerIO.java
public void stopServer() {
		try {
			for (Peer peer : PeerTable.peerTable.values()) {
				peer.stop();
			}
			PeerTable.peerTable.clear();
			sc.close();
			sc = null;
			log.info("<----------------------------Stopped Diameter Server---------------------->");
		} catch (Exception e) {
			log.error("Error in ServerIO", e);
		}
	}
/**
	 * 
	 * It Releases all the peers corresponding to this ServerIO Object by iterating through each value of Peer Table.
	 * 
	 * Finally the Server socket is closed.
	 */
It Releases all the peers corresponding to this ServerIO Object by iterating through each value of Peer Table.

Finally the Server socket is closed.
It Releases all the peers corresponding to this ServerIO Object by iterating through each value of Peer Table . Finally the Server socket is closed .
public void stopServer() {
		try {
			for (Peer peer : PeerTable.peerTable.values()) {
				peer.stop();
			}
			PeerTable.peerTable.clear();
			sc.close();
			sc = null;
			log.info("<----------------------------Stopped Diameter Server---------------------->");
		} catch (Exception e) {
			log.error("Error in ServerIO", e);
		}
	}
public void stopServer ( ) { try { for ( Peer peer : PeerTable . peerTable . values ( ) ) { peer . stop ( ) ; } PeerTable . peerTable . clear ( ) ; sc . close ( ) ; sc = null ; log . info ( "<----------------------------Stopped Diameter Server---------------------->" ) ; } catch ( Exception e ) { log . error ( "Error in ServerIO" , e ) ; } }
It Releases all the peers corresponding to this ServerIO Object by iterating through each value of Peer Table.
It Releases all the peers corresponding to this ServerIO Object by iterating through each value of Peer Table .