/* * OtpCookedConnection delivers messages here * return true if message was delivered successfully, or false otherwise. */ internal virtual bool deliver(OtpMsg m) { OtpMbox mbox = null; try { OtpMsg.Tag t = m.type(); if (t == OtpMsg.Tag.regSendTag) { System.String name = m.getRecipientName(); /*special case for netKernel requests */ if (name.Equals("net_kernel")) { return(netKernel(m)); } else { mbox = mboxes.get(name); } } else { mbox = mboxes.get(m.getRecipientPid()); } if (mbox == null) { return(false); } mbox.deliver(m); } catch (System.Exception) { return(false); } return(true); }
/* * OtpCookedConnection delivers messages here * return true if message was delivered successfully, or false otherwise. */ internal virtual bool deliver(OtpMsg m) { OtpMbox mbox = null; try { OtpMsg.Tag t = m.type(); if (t == OtpMsg.Tag.regSendTag) { System.String name = m.getRecipientName(); /*special case for netKernel requests */ if (name.Equals("net_kernel")) return netKernel(m); else mbox = mboxes.get(name); } else { mbox = mboxes.get(m.getRecipientPid()); } if (mbox == null) return false; mbox.deliver(m); } catch (System.Exception) { return false; } return true; }