Code example for LocalSocket

Methods: close

0
		try { 
			if ( receiver != null){
				receiver.close();
			} 
			if ( sender != null){
				sender.close();
			} 
		} catch (IOException e1) {
			e1.printStackTrace();
			Log.d(TAG, e1.toString());			
		} 
		 
		sender = null;
		receiver = null;
        isConnected_ = false;
	} 
 
	public boolean InitLoop(int recvBufferSize, int sendBufferSize)
	{		 
        receiver = new LocalSocket();
		try {