public void recvOtherMsg(byte[] packet, Socket peer)
    {
    	ByteBuffer str = ByteBuffer.wrap(packet);
		CharsetDecoder decoder = charset.newDecoder();
		try {
			PeerInfo pTemp = new PeerInfo();
			CharBuffer cbuf = decoder.decode(str);
			String msg = cbuf.toString();
			if(incomingConnections > 3) {
				
				pTemp.sendInitiatorString("SIMPELLA/0.6 503 Maximum number of connections reached. Sorry!\r\n", peer);
				
				ListIterator<PeerData> li = connectionList.listIterator();
		    	while(li.hasNext()) {
		    		PeerData p = li.next();
		    		if(p.p_socket == peer) {
		    			//p.p_socket.close();
		    			peer.close();
		    			li.remove();
		    		}
		    	}
				
				incomingConnections --;
			}else if(msg.contains("503")){
				System.out.println(msg);
				ListIterator<PeerData> li = connectionList.listIterator();
		    	while(li.hasNext()) {
		    		PeerData p = li.next();
		    		if(p.p_socket == peer) {
		    			//p.p_socket.close();
		    			peer.close();
		    			li.remove();
		    		}
		    	}
				
				PeerInfo.outgoingConnection--;
			}else if(msg.contains("200")) {
				System.out.println(msg);
				pTemp.sendInitiatorString("SIMPELLA/0.6 I appreciate the connection!\r\n", peer);
			}else if(msg.contains("CONNECT")) {
				pTemp.sendInitiatorString("SIMPELLA/0.6 200 Connection Established!\r\n", peer);
			}else {
				System.out.println(msg);
			}
				
			
		}catch(IOException e) {
			e.printStackTrace();
		}
    	
    }