;ò Šà;c@sædkZdkZdkZdkZdkZdkZdkZdkZdkZe a d„Z d„Z d„Z d„Zd„Zd„Zd„Zd„Zd „Zd „Zd „Zd „Zd „Zd„ZeeiƒdS(NcCs d|GHdS(NsAliveOkResp creation=%d(screation(screation((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pysTestAliveOkRespscCs dGHdS(NsAliveNotOkResp((sself((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pysTestAliveNotOkRespscCsd||fGHdS(Ns"Alive2Resp, result=%d, creation=%d(sresultscreation(sresultscreation((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pysTestAlive2RespscCs,d|GHd}d|GHti|tƒdS(Ns Alive2RespConnected, creation=%dsflerpsChecking for node named "%s".(screationsnodeToCheckForsesPortPlease2Reqs TestPort2Resp(screationsnodeToCheckFor((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pysTestAlive2RespConnecteds  cCs d|GHdS(Ns"Alive2RespConnectFailed, result=%d(sresult(sresult((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pysTestAlive2RespConnectFailedscCs d|GHdS(NsPortOkResp, portNum=%d(sportNum(sportNum((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pysTestPortOkResp"scCs dGHdS(Ns PortNotOkResp((sself((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pysTestPortNotOkResp%scCs>|djo$dd|||| ||fGHn d|GHdS(Nis;Port2Resp, result=ok, portNum=%d, nodeType=%d, protocol=%d,s, distrVSNRange=%s, nodeName="%s", extra="%s"sPort2Resp, result=%d(sresultsportNumsnodeTypesprotosdistrsnodeNamesextra(sresultsportNumsnodeTypesprotosdistrsnodeNamesextra((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pys TestPort2Resp(s $cCsd||fGHdS(Ns&NamesResp, epmdPortNum=%d nodeInfo: %s(s epmdPortNumsnodeInfo(s epmdPortNumsnodeInfo((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pys TestNamesResp3scCsd||fGHdS(Ns%DumpResp, epmdPortNum=%d nodeInfo: %s(s epmdPortNumsnodeInfo(s epmdPortNumsnodeInfo((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pys TestDumpResp7scCs d|GHdS(NsKillResp, resp=%s(sresp(sresp((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pys TestKillResp;scCs d|GHdS(NsStopResp, resp=%s(sresp(sresp((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pys TestStopResp>scCs dGHdS(Ns#Connection to epmd has been closed.((((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pysTestConnectionClosedAsc Cs|y ti|ddƒ\} }Wntij o}|GHnXd}d}d}d}xv| D]n\}} |djod|d GHt i dƒq_|d joti| ƒ}q_|d jo | }q_q_Wt|ƒd jo!|d }ti|dƒ}n"t|ƒdjo|d }nti||ƒati|ƒti|ƒtittƒtiƒ}|iƒdS( Nis?p:n:s localhostiiÒspy_interface_tests-?sUsage: %s host [port]is-ps-ni(sgetoptsargvsoptssargsserrorsinfoshostNamesportNums ownPortNums ownNodeNamesoptcharsoptargssyssexitsstringsatoislenserl_epmdsErlEpmdses SetOwnPortNumsSetOwnNodeNamesConnectsTestAlive2RespConnectedsTestAlive2RespConnectFailedserl_eventhandlersGetEventHandlers evhandlersLoop( sargvsinfoshostNames ownNodeNames ownPortNumsportNumsargss evhandlersoptcharsoptssoptarg((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pysmainDs:           (ssysstypessstringssocketsgetoptserl_epmds erl_commonserl_async_connserl_eventhandlersNonesesTestAliveOkRespsTestAliveNotOkRespsTestAlive2RespsTestAlive2RespConnectedsTestAlive2RespConnectFailedsTestPortOkRespsTestPortNotOkResps TestPort2Resps TestNamesResps TestDumpResps TestKillResps TestStopRespsTestConnectionClosedsmainsargv(sTestAliveOkRespserl_eventhandlers TestPort2RespsTestAlive2RespConnecteds TestKillRespsTestPortNotOkRespserl_epmdsTestAlive2RespConnectFailedsTestAliveNotOkRespsgetopts erl_commonsstrings TestStopRespsTestAlive2RespsTestConnectionClosedssyss TestDumpRespstypess TestNamesRespsmainssocketserl_async_connsTestPortOkResp((sQ/mnt/gmirror/ports/devel/py_otp_interface/work/py_interface-0.93/test_erl_epmd.pys?s0                      $