/** * Register with Epmd, so that other nodes are able to find and connect to * it. * * @param node * the server node that should be registered with Epmd. * * @return true if the operation was successful. False if the node was * already registered. * * @exception java.io.IOException * if there was no response from the name server. */ public static bool publishPort(OtpLocalNode node) { TcpClient s = null; try { s = r4_publish(node); } catch (IOException) { s = r3_publish(node); } node.setEpmd(s); return(s != null); }
/** * Register with Epmd, so that other nodes are able to find and connect to * it. * * @param node * the server node that should be registered with Epmd. * * @return true if the operation was successful. False if the node was * already registered. * * @exception java.io.IOException * if there was no response from the name server. */ public static bool publishPort(OtpLocalNode node) { TcpClient s = null; try { s = r4_publish(node); } catch (IOException) { s = r3_publish(node); } node.setEpmd(s); return s != null; }