Skip to content

Pyrlang/Epmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Currently the package is in development and can be installed by:

pip install .

Give A Quick Try

Please check try_pyepmd.py for a quick usage detail. The script starts a epmd server written in this package and listens at the given port.

from epmd import Epmd

# use a custom EPMD port to not interfere with a regular EPMD possibly running
server = Epmd(port=4370) 
asyncio.run(server.start_server())

Now, use your erlang module with the custom epmd started (running at port 4370) above by:

ERL_EPMD_PORT=<custom_epmd_port> erl -name <node_name>

Example:

  1. Starting node a@127.0.0.1:

    ERL_EPMD_PORT=4370 erl -name a@127.0.0.1
  2. Starting node b@127.0.0.1:

    ERL_EPMD_PORT=4370 erl -name b@127.0.0.1
  3. Connect nodes a@127.0.0.1 and b@127.0.0.1:

    (a@127.0.0.1)1> net_kernel:connect_node('b@127.0.0.1').

    or, ping by:

    (a@127.0.0.1)1> net_adm:ping('b@127.0.0.1').

Ackhowledgements

Thanks to Amit Garu (amitgaru2@gmail.com) for contributing the initial version of Epmd.

About

Library which implements EPMD (Erlang Port Mapper Daemon) protocol with asyncio

Resources

License

Stars

6 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages