Skip to content

Latest commit

 

History

History
81 lines (40 loc) · 1.78 KB

peculium_core_network.md

File metadata and controls

81 lines (40 loc) · 1.78 KB

Module peculium_core_network

Bitcoin Network Utilities. Copyright (c) 2013 Alexander Færøy

Authors: Alexander Færøy (ahf@0x90.dk).

Data Types

Function Index

magic_value/1Get network wire magical value from a given network.
port_number/1Get default port from a given network.
stringify/1Convert a given network atom to a binary.

Function Details

magic_value/1


magic_value(Network::network()) -> {ok, binary()} | {error, term()}



Get network wire magical value from a given network.

port_number/1


port_number(Network::network()) -> {ok, Port::inet:port_number()} | {error, term()}



Get default port from a given network.

stringify/1


stringify(Network::network()) -> {ok, binary()} | {error, term()}



Convert a given network atom to a binary.