erlang
/
osmo-map-masq
Archived
4
0
Fork 0

first attempt to play with the Erlang application framework

This commit is contained in:
Harald Welte 2010-08-07 19:31:30 +02:00
parent 2a8b20ac74
commit 2e50e402e1
1 changed files with 12 additions and 0 deletions

12
src/omm_app.erl Normal file
View File

@ -0,0 +1,12 @@
-module(omm_app).
-behaviour(application).
-export([start/2, stop/1]).
start(_Type, _Args) ->
{ok, UdpPort} = application:get_env(?MODULE, udp_listen_port),
{ok, IpaDstAddr} = application:get_env(?MODULE, ipa_connect_ip),
{ok, IpaDstPort} = application:get_env(?MODULE, ipa_connect_port),
{ok, IpaStreamID} = application:get_env(?MODULE, ipa_stream_id),
osmo_map_masq:init(UdpPort, IpaDstAddr, IpaDstPort, IpaStreamID).
stop(_State) ->
ok.