public void send ( final String aname , final String node , final OtpErlangObject msg ) { try { final String currentNode = home . node ( ) ; if ( node . equals ( currentNode ) ) { send ( aname , msg ) ; } else if ( node . indexOf ( ' ' , 0 ) < 0 && node . equals ( currentNode . substring ( 0 , currentNode . indexOf ( ' ' , 0 ) ) ) ) { send ( aname , msg ) ; } else { // other node final OtpCookedConnection conn = home . getConnection ( node ) ; if ( conn == null ) { return ; } conn . send ( self , aname , msg ) ; } } catch ( final Exception e ) { } }
Send a message to a named mailbox created from another node .